git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686c407
)
win32_capture: handle NtQuerySecurityObject returning an empty descriptor
author
Eric Biggers
<ebiggers3@gmail.com>
Thu, 18 Feb 2016 02:21:39 +0000
(20:21 -0600)
committer
Eric Biggers
<ebiggers3@gmail.com>
Thu, 18 Feb 2016 02:21:39 +0000
(20:21 -0600)
src/win32_capture.c
patch
|
blob
|
history
diff --git
a/src/win32_capture.c
b/src/win32_capture.c
index 951f61bfb9dad4a7d007269ece96edd4c2bb8c99..4bc0f7c2b89d6e564c2f7f0cb4a2d4dc671e664a 100644
(file)
--- a/
src/win32_capture.c
+++ b/
src/win32_capture.c
@@
-634,8
+634,13
@@
winnt_load_security_descriptor(HANDLE h, struct wim_inode *inode,
}
}
+ /* We can get a length of 0 with Samba. Assume that means "no security
+ * descriptor". */
+ if (len_needed == 0)
+ goto out;
+
/* Add the security descriptor to the WIM image, and save its ID in
- * file's inode. */
+ *
the
file's inode. */
inode->i_security_id = sd_set_add_sd(ctx->params->sd_set, buf, len_needed);
if (unlikely(inode->i_security_id < 0))
status = STATUS_NO_MEMORY;