summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-15 23:17:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:03 -0500
commitcc944794c19b672fba1c77d43f198654c009dd55 (patch)
treebc4ae4de967065298f8a091ffed4cfabe0c81767
parentc8e02022772c8c29548451dc93c895daa492f100 (diff)
downloadsamba-cc944794c19b672fba1c77d43f198654c009dd55.tar.gz
samba-cc944794c19b672fba1c77d43f198654c009dd55.tar.bz2
samba-cc944794c19b672fba1c77d43f198654c009dd55.zip
r5812: We missed some RESOLVE_DFSPATH calls on pathnames for older calls.
Jeremy. (This used to be commit 0b0b8686f3c4261e9b1070f4b2968e6f4ed4bbd7)
-rw-r--r--source3/smbd/reply.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 376b42e5fd..326dafd678 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -701,6 +701,8 @@ int reply_setatr(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
return ERROR_NT(status);
}
+ RESOLVE_DFSPATH(fname, conn, inbuf, outbuf);
+
unix_convert(fname,conn,0,&bad_path,&sbuf);
if (bad_path) {
END_PROFILE(SMBsetatr);
@@ -833,6 +835,9 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
END_PROFILE(SMBsearch);
return ERROR_NT(nt_status);
}
+
+ RESOLVE_DFSPATH(path, conn, inbuf, outbuf);
+
p++;
status_len = SVAL(p, 0);
p += 2;
@@ -4490,6 +4495,8 @@ int reply_setdir(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
return ERROR_NT(status);
}
+ RESOLVE_DFSPATH(newdir, conn, inbuf, outbuf);
+
if (strlen(newdir) == 0) {
ok = True;
} else {