Skip to content

Commit

Permalink
Merge pull request #55 from fermitools/simplify-if
Browse files Browse the repository at this point in the history
Skip two step check
  • Loading branch information
jcpunk committed May 29, 2024
2 parents 637c0ff + 3f4197d commit 021304c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/C/init-kcron-keytab.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ int main(void) {
}

/* look for our client keytab directory */
stat_code = stat(client_keytab_dirname, &st);
if (stat_code == -1) {
if (stat(client_keytab_dirname, &st) == -1) {
(void)fprintf(stderr, "%s: Client keytab directory does not exist: %s.\n", __PROGRAM_NAME, client_keytab_dirname);
(void)fprintf(stderr, "%s: Contact your admin to have it created.\n", __PROGRAM_NAME);
(void)free(keytab);
Expand Down

0 comments on commit 021304c

Please sign in to comment.