summaryrefslogtreecommitdiff
path: root/misc/mke2fs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-12-22 19:00:21 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-12-22 19:00:21 -0500
commitda2a5a4baede2a227d2da587eb74ceae66778fbc (patch)
tree5a2e070684ffc2f63873ee24a4b6a499ce9985e6 /misc/mke2fs.c
parent9b27e9cc320dd7da24356561b3b12c66f2540432 (diff)
parent7267e3d3fdbc911477bfd7fb8bb5232252168d0a (diff)
downloade2fsprogs-da2a5a4baede2a227d2da587eb74ceae66778fbc.tar.gz
Merge branch 'maint' into next
Conflicts: resize/resize2fs.c
Diffstat (limited to 'misc/mke2fs.c')
-rw-r--r--misc/mke2fs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index f453f57f..0ba4a4ce 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -1008,13 +1008,13 @@ static char **parse_fs_type(const char *fs_type,
*t = '\0';
if (*cp) {
- if (!profile_has_subsection(profile, "fs_types", cp))
+ if (profile_has_subsection(profile, "fs_types", cp))
+ push_string(&list, cp);
+ else if (strcmp(cp, "default") != 0)
fprintf(stderr,
_("\nWarning: the fs_type %s is not "
- "defined in /etc/mke2fs.conf\n\n"),
+ "defined in mke2fs.conf\n\n"),
cp);
- else
- push_string(&list, cp);
}
if (t)
cp = t+1;