diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-27 09:29:36 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-04-02 09:03:44 +0200 |
commit | 2b098c15fdf7ae65d87427aaeab170cf6cfea8bc (patch) | |
tree | 2f6bf68a06bc98e120bcdbe4e1e1776145ecdf7a /source4/ntvfs | |
parent | 0053603283e032834c99ef78e2471515c14c48be (diff) | |
download | samba-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.c | 1 |
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; } |