diff options
author | Colin Cross <ccross@android.com> | 2013-02-25 07:20:30 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-02-25 07:20:30 +0000 |
commit | cdfa5ece8d507f458384d6ca1b86d6c897b83cfc (patch) | |
tree | 67aa6600bdee35dbadbf36be635d5cc07b98a6e7 | |
parent | 3130a32fd910f424a9d6b811ed23d9a552004c81 (diff) | |
parent | 192238d9081d4ad8c090a77e8e1d40b66e8fae4a (diff) | |
download | extras-cdfa5ece8d507f458384d6ca1b86d6c897b83cfc.tar.gz |
Merge "ext4_utils: fix build error without FILE_CONTEXTS"
-rw-r--r-- | ext4_utils/contents.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext4_utils/contents.c b/ext4_utils/contents.c index 48996483..586e97e6 100644 --- a/ext4_utils/contents.c +++ b/ext4_utils/contents.c @@ -467,6 +467,9 @@ static int xattr_add(u32 inode_num, int name_index, const char *name, 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); } |