diff options
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fetchmail.c b/fetchmail.c index 93f4754a..78f3993f 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -492,7 +492,7 @@ int main(int argc, char **argv) * but ignore them otherwise so as not to interrupt a poll. */ signal(SIGUSR1, SIG_IGN); - if (run.poll_interval && !getuid()) + if (run.poll_interval && getuid() == ROOT_UID) signal(SIGHUP, SIG_IGN); } else @@ -732,7 +732,7 @@ int main(int argc, char **argv) * for people who think all system daemons wake up on SIGHUP. */ signal(SIGUSR1, donothing); - if (!getuid()) + if (getuid() != ROOT_UID) signal(SIGHUP, donothing); /* @@ -1187,7 +1187,7 @@ static int load_params(int argc, char **argv, int optind) */ if (!run.postmaster) { - if (getuid()) /* ordinary user */ + if (getuid() != ROOT_UID) /* ordinary user */ run.postmaster = user; else /* root */ run.postmaster = "postmaster"; |