aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-09-04 13:59:02 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-09-04 13:59:02 +0000
commitc8928081a5a9cbfaf16b14d4db57476bda8e1189 (patch)
tree2d7b495cd4352fd5facdeaeb500a394ba17b7714 /fetchmail.c
parente588fb0f217d4ab7d1bfe8a1d292b8f556cefcb8 (diff)
downloadfetchmail-c8928081a5a9cbfaf16b14d4db57476bda8e1189.tar.gz
fetchmail-c8928081a5a9cbfaf16b14d4db57476bda8e1189.tar.bz2
fetchmail-c8928081a5a9cbfaf16b14d4db57476bda8e1189.zip
Cygwin port fix.
svn path=/trunk/; revision=3692
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c6
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";