git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e7ed72
)
s3-pysmbd: Fix error message
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 22 Aug 2012 11:00:17 +0000
(21:00 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 23 Aug 2012 13:02:26 +0000
(15:02 +0200)
source3/smbd/pysmbd.c
patch
|
blob
|
history
diff --git
a/source3/smbd/pysmbd.c
b/source3/smbd/pysmbd.c
index 6866ff353903668ff148ce814e3a57f6da6d1f34..a4de0e44eeecaaaceeedbafa9f2368205b9887d3 100644
(file)
--- 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,("ch
won returned failure: %s\n", strerror(ret
)));
+ status = map_nt_error_from_unix_common(
errno
);
+ DEBUG(0,("ch
own returned failure: %s\n", strerror(errno
)));
}
conn_free(conn);