summaryrefslogtreecommitdiff
path: root/src/fsck/fsck.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-24 19:37:22 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-25 10:04:36 +0200
commit571d0134bd464444567cf4eb0d2ed8df40045f36 (patch)
tree0039138a0d652a453bc9604375f32489347a3b82 /src/fsck/fsck.c
parentfbe1a1a94f19112d7e5d60c40d87487ad24e2ce4 (diff)
fsck: consider a fsck implementation linked to /bin/true non-existant
Diffstat (limited to 'src/fsck/fsck.c')
-rw-r--r--src/fsck/fsck.c14
1 files changed, 5 insertions, 9 deletions
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)