diff options
author | Jeremy Allison <jra@samba.org> | 2007-01-16 20:53:50 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-01-16 20:53:50 +0000 |
commit | 711ce5b157d55e3239b52162de07c701c13677bd (patch) | |
tree | 6bb291261795c3cadb81395f8427954e082c8ddf /source/smbd/reply.c | |
parent | 3ce89f456edb16e6afdf61845ab65fd3f4b9df07 (diff) | |
download | samba-711ce5b157d55e3239b52162de07c701c13677bd.tar.gz samba-711ce5b157d55e3239b52162de07c701c13677bd.tar.xz samba-711ce5b157d55e3239b52162de07c701c13677bd.zip |
r20842: Only one more BOOL ok to go...
Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index f633be37402..c90c59698fb 100644 --- a/source/smbd/reply.c +++ b/source/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); |