From: wessels <> Date: Tue, 16 Apr 1996 11:13:06 +0000 (+0000) Subject: compiler X-Git-Tag: SQUID_3_0_PRE1~6157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8f2fd2360c7f433010f5eed517ff351255727b5;p=thirdparty%2Fsquid.git compiler --- diff --git a/src/tools.cc b/src/tools.cc index 7471138e1d..f8aaa4dbce 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,5 +1,5 @@ -/* $Id: tools.cc,v 1.34 1996/04/16 05:05:33 wessels Exp $ */ +/* $Id: tools.cc,v 1.35 1996/04/16 05:13:06 wessels Exp $ */ /* * DEBUG: Section 21 tools @@ -339,7 +339,7 @@ void check_suid() if ((pwd = getpwnam(getEffectiveUser())) == NULL) return; /* change current directory to swap space so we can get core */ - if (chdir(swappath(0))) + if (chdir(swappath(0)) < 0) { debug(21, 0, "%s: %s\n", swappath(0), xstrerror()); fatal_dump("Cannot cd to swap directory?"); }