r7210: Fix my own mistakes up, sorry.
authorJeremy Allison <jra@samba.org>
Fri, 3 Jun 2005 05:35:04 +0000 (05:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:57:05 +0000 (10:57 -0500)
Jeremy.
(This used to be commit 53c3a954ee0e1c9dc61950f1a9d0a654de9382c6)

source3/smbd/dir.c
source3/smbd/filename.c
source3/smbd/service.c

index 935ca20195819a00e3d6344c969cc2a84e196d08..f335c60897557e77a4e0af72e733fad3d8eb23ef 100644 (file)
@@ -560,7 +560,7 @@ const char *dptr_ReadDirName(struct dptr_struct *dptr, long *poffset, SMB_STRUCT
 {
        pstring pathreal;
 
-       SET_STAT_INVALID(pst);
+       SET_STAT_INVALID(*pst);
 
        if (dptr->has_wild) {
                return dptr_normal_ReadDirName(dptr, poffset, pst);
@@ -629,7 +629,7 @@ const char *dptr_ReadDirName(struct dptr_struct *dptr, long *poffset, SMB_STRUCT
 
 BOOL dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst)
 {
-       SET_STAT_INVALID(pst);
+       SET_STAT_INVALID(*pst);
 
        if (!dptr->has_wild && (dptr->dir_hnd->offset == -1)) {
                /* This is a singleton directory and we're already at the end. */
@@ -958,7 +958,7 @@ BOOL is_visible_file(connection_struct *conn, const char *dir_path, const char *
        BOOL hide_unwriteable = lp_hideunwriteable_files(SNUM(conn));
        BOOL hide_special = lp_hide_special_files(SNUM(conn));
 
-       SET_STAT_INVALID(pst);
+       SET_STAT_INVALID(*pst);
 
        if ((strcmp(".",name) == 0) || (strcmp("..",name) == 0)) {
                return True; /* . and .. are always visible. */
index 733001bc91def095e22485bbd05b8718839c3c8f..3fb88974fefdb1c562c52a722ef8a68052ee9eb1 100644 (file)
@@ -92,7 +92,7 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
        BOOL component_was_mangled = False;
        BOOL name_has_wildcard = False;
 
-       SET_STAT_INVALID(pst);
+       SET_STAT_INVALID(*pst);
 
        *dirpath = 0;
        *bad_path = False;
index 0566dd8102be97542e6c65c42c3cb7c2476313a6..24f4df7694215ba9d8d14b0bb61b14be46763a58 100644 (file)
@@ -275,7 +275,7 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser,
 
        *user = 0;
        fstrcpy(dev, pdev);
-       SET_STAT_INVALD(st);
+       SET_STAT_INVALID(st);
 
        if (NT_STATUS_IS_ERR(*status = share_sanity_checks(snum, dev))) {
                return NULL;