commit | cdfa5ece8d507f458384d6ca1b86d6c897b83cfc | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Mon Feb 25 07:20:30 2013 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Feb 25 07:20:30 2013 +0000 |
tree | 67aa6600bdee35dbadbf36be635d5cc07b98a6e7 | |
parent | 3130a32fd910f424a9d6b811ed23d9a552004c81 [diff] | |
parent | 192238d9081d4ad8c090a77e8e1d40b66e8fae4a [diff] |
Merge "ext4_utils: fix build error without FILE_CONTEXTS"
diff --git a/ext4_utils/contents.c b/ext4_utils/contents.c index 4899648..586e97e 100644 --- a/ext4_utils/contents.c +++ b/ext4_utils/contents.c
@@ -467,6 +467,9 @@ int inode_set_selinux(u32 inode_num, const char *secon) { + if (!secon) + return 0; + return xattr_add(inode_num, EXT4_XATTR_INDEX_SECURITY, XATTR_SELINUX_SUFFIX, secon, strlen(secon) + 1); }