summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-27 09:29:36 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-04-02 09:03:44 +0200
commit2b098c15fdf7ae65d87427aaeab170cf6cfea8bc (patch)
tree2f6bf68a06bc98e120bcdbe4e1e1776145ecdf7a /source4/ntvfs
parent0053603283e032834c99ef78e2471515c14c48be (diff)
downloadsamba-2b098c15fdf7ae65d87427aaeab170cf6cfea8bc.tar.gz
s4:ntvfs/posix: correctly reset errno on success in pvfs_sys_mkdir()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/pvfs_sys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_sys.c b/source4/ntvfs/posix/pvfs_sys.c
index eb710f66513..f56704692c4 100644
--- a/source4/ntvfs/posix/pvfs_sys.c
+++ b/source4/ntvfs/posix/pvfs_sys.c
@@ -541,6 +541,7 @@ int pvfs_sys_mkdir(struct pvfs_state *pvfs, const char *dirname, mode_t mode, bo
}
talloc_free(ctx);
+ errno = orig_errno;
return ret;
}