Permalink
Browse files

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 5241e4d7b177d0b6f073cfc9ed5444bf51ec89d6
Showing with 1 addition and 1 deletion.
  1. +1 −1 keepalived/core/main.c
View
@@ -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;

0 comments on commit 5241e4d

Please sign in to comment.