mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
r20842: Only one more BOOL ok to go...
Jeremy. (This used to be commit de0bf477dab1d57b5f7bc6bf70d8e76f9bfac63f)
This commit is contained in:
parent
16f96517f1
commit
f065b42dcc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user