Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix compile warning introduced in commit c6247a9
Commit c6247a9 - "Add command line and configuration option to set umask"
introduced a compile warning, although the code would have worked OK.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
  • Loading branch information
pqarmitage committed Oct 31, 2018
1 parent c6247a9 commit 5241e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keepalived/core/main.c
Expand Up @@ -882,7 +882,7 @@ set_umask(const char *optarg)

if (*endptr || umask_long < 0 || umask_long & ~0777L) {
fprintf(stderr, "Invalid --umask option %s", optarg);
return;
return 0;
}

umask_val = umask_long & 0777;
Expand Down

0 comments on commit 5241e4d

Please sign in to comment.