git.samba.org
/
tridge
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c000f1
)
pyxattr_tdb: Remove pointless check for blob.length < 0.
author
Jelmer Vernooij
<jelmer@samba.org>
Sun, 5 Feb 2012 14:31:31 +0000
(15:31 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Tue, 7 Feb 2012 00:11:07 +0000
(
01:11
+0100)
source4/ntvfs/posix/python/pyxattr_tdb.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/python/pyxattr_tdb.c
b/source4/ntvfs/posix/python/pyxattr_tdb.c
index 7e59b54ee2e85fda46181b3b17c719e7f76088a0..7248560039dfa8bdc5163efa1395f30582a78521 100644
(file)
--- a/
source4/ntvfs/posix/python/pyxattr_tdb.c
+++ b/
source4/ntvfs/posix/python/pyxattr_tdb.c
@@
-92,7
+92,7
@@
static PyObject *py_wrap_getxattr(PyObject *self, PyObject *args)
}
status = pull_xattr_blob_tdb_raw(eadb, mem_ctx, attribute, filename,
-1, 100, &blob);
- if (!NT_STATUS_IS_OK(status)
|| blob.length < 0
) {
+ if (!NT_STATUS_IS_OK(status)) {
PyErr_SetNTSTATUS(status);
talloc_free(mem_ctx);
return NULL;