diff options
Diffstat (limited to 'ext4_utils/make_ext4fs.c')
-rw-r--r-- | ext4_utils/make_ext4fs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c index 5c1003d3..f62fee9f 100644 --- a/ext4_utils/make_ext4fs.c +++ b/ext4_utils/make_ext4fs.c @@ -568,8 +568,10 @@ int make_ext4fs_internal(int fd, const char *_directory, if (selabel_lookup(sehnd, &secontext, mountpoint, S_IFDIR) < 0) { error("cannot lookup security context for %s", mountpoint); } - if (secontext && verbose) { - printf("Labeling %s as %s\n", mountpoint, secontext); + if (secontext) { + if (verbose) { + printf("Labeling %s as %s\n", mountpoint, secontext); + } inode_set_selinux(root_inode_num, secontext); } freecon(secontext); |