summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r--source3/smbd/nttrans.c5
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