New helper function: inode_has_security_descriptor()
[wimlib] / src / ntfs-3g_apply.c
index f0386b1245a025c6138308f8e13cfb9676172684..10f514cd9481378b3b91de556893cbcafa31f5a0 100644 (file)
@@ -385,7 +385,7 @@ ntfs_3g_set_metadata(ntfs_inode *ni, const struct wim_inode *inode,
        }
 
        /* Security descriptor  */
-       if ((inode->i_security_id >= 0)
+       if (inode_has_security_descriptor(inode)
            && !(extract_flags & WIMLIB_EXTRACT_FLAG_NO_ACLS))
        {
                const void *desc;