From: angelos Date: Sat, 15 Feb 1997 04:57:42 +0000 (+0000) Subject: Minor change to bypass compilation failure. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c6e8e8ee2e7652fd067c9c2074959b529702cc1f;p=openbsd Minor change to bypass compilation failure. --- diff --git a/lib/libpthread/stdio/tempnam.c b/lib/libpthread/stdio/tempnam.c index e9c7e742472..584c8f9442e 100644 --- a/lib/libpthread/stdio/tempnam.c +++ b/lib/libpthread/stdio/tempnam.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)tempnam.c 5.1 (Berkeley) 2/22/91";*/ -static char *rcsid = "$Id: tempnam.c,v 1.2 1996/08/26 00:17:28 deraadt Exp $"; +static char *rcsid = "$Id: tempnam.c,v 1.3 1997/02/15 04:57:42 angelos Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -56,7 +56,7 @@ tempnam(dir, pfx) if (!pfx) pfx = "tmp."; - if (issetugid() == 0 && f = getenv("TMPDIR")) { + if ((issetugid() == 0) && (f = getenv("TMPDIR"))) { (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f, *(f + strlen(f) - 1) == '/'? "": "/", pfx); if (f = mktemp(name))