diff --git a/src/bootctl/bootctl-status.c b/src/bootctl/bootctl-status.c index 8ac2444744..bd8d47a2e9 100644 --- a/src/bootctl/bootctl-status.c +++ b/src/bootctl/bootctl-status.c @@ -621,11 +621,11 @@ int verb_status(int argc, char *argv[], uintptr_t _data, void *userdata) { if (!p) return log_oom(); - r = access(p, F_OK); - if (r < 0 && errno != ENOENT) + k = access(p, F_OK); + if (k < 0 && errno != ENOENT) printf(" Exists: Can't access %s (%m)\n", p); else - printf(" Exists: %s\n", yes_no(r >= 0)); + printf(" Exists: %s\n", yes_no(k >= 0)); } printf("\n");