diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-23 19:12:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-23 19:12:05 +0200 |
commit | 05ac2678ba0b5de227a4782fa20e3dc0674c6fbc (patch) | |
tree | b8ba26a5ad4dc2e0532a00c8363f8b6094123154 | |
parent | Fix mistakes (diff) | |
download | key2root-05ac2678ba0b5de227a4782fa20e3dc0674c6fbc.tar.gz key2root-05ac2678ba0b5de227a4782fa20e3dc0674c6fbc.tar.bz2 key2root-05ac2678ba0b5de227a4782fa20e3dc0674c6fbc.tar.xz |
Fix exit status
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | key2root-rmkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/key2root-rmkey.c b/key2root-rmkey.c index f44cf06..4e5fa1e 100644 --- a/key2root-rmkey.c +++ b/key2root-rmkey.c @@ -199,7 +199,7 @@ main(int argc, char *argv[]) out: for (i = 0; i < nkeys; i++) fprintf(stderr, "%s: key not found for %s: %s\n", argv0, user, keys[i]); - failed |= !nkeys; + failed |= nkeys > 0; if (nkeys != (size_t)argc) { if (!data_len) { |