diff options
author | Jeremy Allison <jra@samba.org> | 2005-03-15 23:17:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:03 -0500 |
commit | cc944794c19b672fba1c77d43f198654c009dd55 (patch) | |
tree | bc4ae4de967065298f8a091ffed4cfabe0c81767 | |
parent | c8e02022772c8c29548451dc93c895daa492f100 (diff) | |
download | samba-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.c | 7 |
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 { |