summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/pysmbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c
index 6866ff3539..a4de0e44ee 100644
--- a/source3/smbd/pysmbd.c
+++ b/source3/smbd/pysmbd.c
@@ -315,8 +315,8 @@ static PyObject *py_smbd_chown(PyObject *self, PyObject *args)
ret = SMB_VFS_CHOWN( conn, fname, uid, gid);
if (ret != 0) {
- status = map_nt_error_from_unix_common(ret);
- DEBUG(0,("chwon returned failure: %s\n", strerror(ret)));
+ status = map_nt_error_from_unix_common(errno);
+ DEBUG(0,("chown returned failure: %s\n", strerror(errno)));
}
conn_free(conn);