aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs/ismounted.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/ext2fs/ismounted.c')
-rw-r--r--e2fsprogs/ext2fs/ismounted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsprogs/ext2fs/ismounted.c b/e2fsprogs/ext2fs/ismounted.c
index cace7715c..d943f1185 100644
--- a/e2fsprogs/ext2fs/ismounted.c
+++ b/e2fsprogs/ext2fs/ismounted.c
@@ -144,7 +144,7 @@ static errcode_t check_mntent_file(const char *mtab_file, const char *file,
144 * read/write, since if the root is mounted read/only, the 144 * read/write, since if the root is mounted read/only, the
145 * contents of /etc/mtab may not be accurate. 145 * contents of /etc/mtab may not be accurate.
146 */ 146 */
147 if (!strcmp(mnt->mnt_dir, "/")) { 147 if (LONE_CHAR(mnt->mnt_dir, '/')) {
148is_root: 148is_root:
149#define TEST_FILE "/.ismount-test-file" 149#define TEST_FILE "/.ismount-test-file"
150 *mount_flags |= EXT2_MF_ISROOT; 150 *mount_flags |= EXT2_MF_ISROOT;