Most likely it is a bad filename or attribute, not the wrong type of
argument.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14937
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
^samba.tests.samba_tool.ntacl.+test_with_missing_files
-^samba.tests.posixacl.+test_setntacl_smbd_setposixacl_getntacl
-^samba.tests.posixacl.+test_setposixacl_getntacl
if (errno == ENOTSUP) {
PyErr_SetFromErrno(PyExc_IOError);
} else {
- PyErr_SetFromErrno(PyExc_TypeError);
+ PyErr_SetFromErrnoWithFilename(PyExc_OSError, filename);
}
return NULL;
}
if (errno == ENOTSUP) {
PyErr_SetFromErrno(PyExc_IOError);
} else {
- PyErr_SetFromErrno(PyExc_TypeError);
+ PyErr_SetFromErrnoWithFilename(PyExc_OSError, filename);
}
talloc_free(mem_ctx);
return NULL;
if (errno == ENOTSUP) {
PyErr_SetFromErrno(PyExc_IOError);
} else {
- PyErr_SetFromErrno(PyExc_TypeError);
+ PyErr_SetFromErrnoWithFilename(PyExc_OSError, filename);
}
talloc_free(mem_ctx);
return NULL;