summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-03 05:35:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:05 -0500
commit0deab47cc6f17e597430130df66f7acf8842ff30 (patch)
tree8e261d7581045d2829c16c52e54751df0143c914 /source3
parent97a2087c1458da1f500963dfebb92ce76fdb732f (diff)
downloadsamba-0deab47cc6f17e597430130df66f7acf8842ff30.tar.gz
samba-0deab47cc6f17e597430130df66f7acf8842ff30.tar.bz2
samba-0deab47cc6f17e597430130df66f7acf8842ff30.zip
r7210: Fix my own mistakes up, sorry.
Jeremy. (This used to be commit 53c3a954ee0e1c9dc61950f1a9d0a654de9382c6)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dir.c6
-rw-r--r--source3/smbd/filename.c2
-rw-r--r--source3/smbd/service.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 935ca20195..f335c60897 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -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. */
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 733001bc91..3fb88974fe 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -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;
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 0566dd8102..24f4df7694 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -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;