From: Jeremy Allison Date: Tue, 15 Mar 2005 23:17:03 +0000 (+0000) Subject: r5812: We missed some RESOLVE_DFSPATH calls on pathnames for older calls. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b0b8686f3c4261e9b1070f4b2968e6f4ed4bbd7;p=thirdparty%2Fsamba.git r5812: We missed some RESOLVE_DFSPATH calls on pathnames for older calls. Jeremy. --- diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 376b42e5fd7..326dafd678c 100644 --- a/source/smbd/reply.c +++ b/source/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 {