diff options
author | Jeremy Allison <jra@samba.org> | 2007-01-16 20:53:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:12 -0500 |
commit | f065b42dcceb4eb64b26921aaa88d7a67bac3dc0 (patch) | |
tree | 29592503ee435801a0e9ce4e0f35ba3bfc7ead70 /source3/smbd | |
parent | 16f96517f1f51fb9a8fd75e513bb985bf152adae (diff) | |
download | samba-f065b42dcceb4eb64b26921aaa88d7a67bac3dc0.tar.gz samba-f065b42dcceb4eb64b26921aaa88d7a67bac3dc0.tar.bz2 samba-f065b42dcceb4eb64b26921aaa88d7a67bac3dc0.zip |
r20842: Only one more BOOL ok to go...
Jeremy.
(This used to be commit de0bf477dab1d57b5f7bc6bf70d8e76f9bfac63f)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index f633be3740..c90c59698f 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -4755,7 +4755,6 @@ int reply_setdir(connection_struct *conn, char *inbuf,char *outbuf, int dum_size { int snum; int outsize = 0; - BOOL ok = False; pstring newdir; NTSTATUS status; @@ -4775,17 +4774,12 @@ int reply_setdir(connection_struct *conn, char *inbuf,char *outbuf, int dum_size RESOLVE_DFSPATH(newdir, conn, inbuf, outbuf); - if (strlen(newdir) == 0) { - ok = True; - } else { - ok = vfs_directory_exist(conn,newdir,NULL); - if (ok) - set_conn_connectpath(conn,newdir); - } - - if (!ok) { - END_PROFILE(pathworks_setdir); - return ERROR_DOS(ERRDOS,ERRbadpath); + if (strlen(newdir) != 0) { + if (!vfs_directory_exist(conn,newdir,NULL)) { + END_PROFILE(pathworks_setdir); + return ERROR_DOS(ERRDOS,ERRbadpath); + } + set_conn_connectpath(conn,newdir); } outsize = set_message(outbuf,0,0,False); |