diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-12-19 19:43:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-12-19 19:43:59 +0000 |
commit | 2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d (patch) | |
tree | 144a2c60d05e867f20a910defd19ca854dd8c83a /fetchmail.c | |
parent | 417ed3307c628d8c8daad2da6a594f1fbf6015a3 (diff) | |
download | fetchmail-2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d.tar.gz fetchmail-2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d.tar.bz2 fetchmail-2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d.zip |
Minor corrections.
svn path=/trunk/; revision=2286
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c index 66f5043b..1bdccaa2 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -217,7 +217,9 @@ int main (int argc, char **argv) /* set up to do lock protocol */ #define FETCHMAIL_PIDFILE "fetchmail.pid" - xalloca(tmpbuf, char *, strlen(home) + strlen(FETCHMAIL_PIDFILE) + 3); + xalloca(tmpbuf, char *, !getuid? + (strlen(PID_DIR) + strlen(FETCHMAIL_PIDFILE) + 2): + (strlen(home) + strlen(FETCHMAIL_PIDFILE) + 3)); if (!getuid()) sprintf(tmpbuf, "%s/%s", PID_DIR, FETCHMAIL_PIDFILE); else { |