From 571d0134bd464444567cf4eb0d2ed8df40045f36 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 24 Jun 2014 19:37:22 +0200 Subject: fsck: consider a fsck implementation linked to /bin/true non-existant --- src/fsck/fsck.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/fsck') diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index 0b572e59f5..e8596d90f8 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -302,15 +302,11 @@ int main(int argc, char *argv[]) { type = udev_device_get_property_value(udev_device, "ID_FS_TYPE"); if (type) { r = fsck_exists(type); - if (r < 0) { - if (r == -ENOENT) { - log_info("fsck.%s doesn't exist, not checking file system on %s", - type, device); - return EXIT_SUCCESS; - } else - log_warning("fsck.%s cannot be used for %s: %s", - type, device, strerror(-r)); - } + if (r == -ENOENT) { + log_info("fsck.%s doesn't exist, not checking file system on %s", type, device); + return EXIT_SUCCESS; + } else if (r < 0) + log_warning("fsck.%s cannot be used for %s: %s", type, device, strerror(-r)); } if (arg_show_progress) -- cgit v1.2.3-54-g00ecf