diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-01-08 15:36:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:58 -0500 |
commit | d10af0222623c3c76b19fe872adb6de1eeac6e1c (patch) | |
tree | 7107fde341be72495aa28540b8dda453c708b02a /source3/smbd/nttrans.c | |
parent | 283c690e6efd9b51d63786fac089d7230a3d16ca (diff) | |
download | samba-d10af0222623c3c76b19fe872adb6de1eeac6e1c.tar.gz samba-d10af0222623c3c76b19fe872adb6de1eeac6e1c.tar.bz2 samba-d10af0222623c3c76b19fe872adb6de1eeac6e1c.zip |
r20612: A checkin I've wanted to do for ages: For bad_path==False set_bad_path_error
is equivalent to UNIX_ERROR. Expand the last reference. Lets see if I can kill
that as well :-)
Volker
(This used to be commit 794d5d38f19601bb5b30b965b41b844aacf1caeb)
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index da24e4084d..f62f5881b3 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -639,8 +639,7 @@ int reply_ntcreate_and_X(connection_struct *conn, if (!check_name(fname,conn)) { restore_case_semantics(conn, file_attributes); END_PROFILE(SMBntcreateX); - return set_bad_path_error(errno, False, outbuf, - ERRDOS,ERRbadpath); + return UNIXERROR(ERRDOS, ERRbadpath); } #if 0 @@ -1266,7 +1265,7 @@ static int call_nt_transact_create(connection_struct *conn, char *inbuf, char *o /* All file access must go through check_name() */ if (!check_name(fname,conn)) { restore_case_semantics(conn, file_attributes); - return set_bad_path_error(errno, False, outbuf, ERRDOS,ERRbadpath); + return UNIXERROR(ERRDOS, ERRbadpath); } #if 0 |