diff options
author | Jeremy Allison <jra@samba.org> | 2003-10-28 18:32:01 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-10-28 18:32:01 +0000 |
commit | e893948e04136ed5b9ba08373a93dd55f81e2e24 (patch) | |
tree | 399f2fb909408e83baf2b84df9e28ec4957aa60f /source3/smbd/trans2.c | |
parent | 3638769e02ca8d1ab9cb17d7b10e6e9cdb6ea2e5 (diff) | |
download | samba-e893948e04136ed5b9ba08373a93dd55f81e2e24.tar.gz samba-e893948e04136ed5b9ba08373a93dd55f81e2e24.tar.bz2 samba-e893948e04136ed5b9ba08373a93dd55f81e2e24.zip |
Don't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy.
(This used to be commit a7561336e770405572c13a4607b0e808225e8916)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 5677fb9a41..394adeeb6f 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3298,7 +3298,7 @@ static int call_trans2getdfsreferral(connection_struct *conn, char* inbuf, srvstr_pull(inbuf, pathname, ¶ms[2], sizeof(pathname), -1, STR_TERMINATE); if((reply_size = setup_dfs_referral(conn, pathname,max_referral_level,ppdata)) < 0) - return ERROR_DOS(ERRDOS,ERRbadfile); + return UNIXERROR(ERRDOS,ERRbadfile); SSVAL(outbuf,smb_flg2,SVAL(outbuf,smb_flg2) | FLAGS2_DFS_PATHNAMES); send_trans2_replies(outbuf,bufsize,0,0,*ppdata,reply_size); |