From: Дамјан Георгиевски Date: Tue, 4 Jul 2017 07:40:59 +0000 (+0200) Subject: fix add_esp() in the gpt-auto-generator.c (#6251) X-Git-Tag: v234~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39b6a511e0fa72992e0ef104c484886f36aa35dd;p=thirdparty%2Fsystemd.git fix add_esp() in the gpt-auto-generator.c (#6251) b9088048b15cd21242b2308498fa865f864bfe45 seems to have broke it fstab_is_mount_point() returns `true` (1) if the mount point exists and `false` (0) if it doesn't exist. the change in b9088048 considered that if fstab_is_mount_point() returns 0 the mount point exists. --- diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index c5319169b33..a6b09dcbf18 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -447,7 +447,7 @@ static int add_esp(DissectedPartition *p) { r = fstab_is_mount_point(esp); if (r < 0) return log_error_errno(r, "Failed to parse fstab: %m"); - if (r == 0) { + if (r > 0) { log_debug("%s specified in fstab, ignoring.", esp); return 0; }