diff options
author | Gerald Carter <jerry@samba.org> | 2004-01-31 18:25:57 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-01-31 18:25:57 +0000 |
commit | 575bc995c0d6d1381c02deebc1c45c0fd644f1c2 (patch) | |
tree | eac0c573586ba07a76fba4e24e65cfe7ce7fecbb /source3/smbd/reply.c | |
parent | aa10de1fe4fafee749fd0a6069d857e7945d751b (diff) | |
download | samba-575bc995c0d6d1381c02deebc1c45c0fd644f1c2.tar.gz samba-575bc995c0d6d1381c02deebc1c45c0fd644f1c2.tar.bz2 samba-575bc995c0d6d1381c02deebc1c45c0fd644f1c2.zip |
* BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;
* don't set the unix_ERR_XX code in mkdir_internal, let the error mapping
handle it.
(This used to be commit 87343fc15a385153c2205bd8bfe876504d38d9a1)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 3752507493..c4ff77bd86 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3013,19 +3013,12 @@ NTSTATUS mkdir_internal(connection_struct *conn, pstring directory) ret = vfs_MkDir(conn,directory,unix_mode(conn,aDIR,directory)); if (ret == -1) { - NTSTATUS nterr = NT_STATUS_OK; if(errno == ENOENT) { - unix_ERR_class = ERRDOS; - if (bad_path) { - unix_ERR_code = ERRbadpath; - nterr = NT_STATUS_OBJECT_PATH_NOT_FOUND; - } else { - unix_ERR_code = ERRbadfile; - nterr = NT_STATUS_OBJECT_NAME_NOT_FOUND; - } + if (bad_path) + return NT_STATUS_OBJECT_PATH_NOT_FOUND; + else + return NT_STATUS_OBJECT_NAME_NOT_FOUND; } - if (!NT_STATUS_IS_OK(nterr)) - return nterr; return map_nt_error_from_unix(errno); } |