Date: Wed, 5 Feb 2003 18:51:40 -0500 From: Mike Makonnen <mtm@identd.net> To: "Jacques A. Vidrine" <nectar@FreeBSD.org> Cc: tlambert2@mindspring.com, anoop@ranganath.com, freebsd-current@FreeBSD.org Subject: Re: tmpfile breakage on setuid executables Message-ID: <20030205235146.ELJQ10203.pop017.verizon.net@kokeb.ambesa.net> In-Reply-To: <20030205232854.GC86606@opus.celabo.org> References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> <3E419743.6144BE0B@mindspring.com> <20030205232854.GC86606@opus.celabo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--=.T+CaIkPSS+j)EG Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit The original poster was right. The following patch should fix it. I'll check it in as soon as my test cycle is over. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 Index: lib/libc/stdio/tmpfile.c =================================================================== RCS file: /home/ncvs/src/lib/libc/stdio/tmpfile.c,v retrieving revision 1.8 diff -u -r1.8 tmpfile.c --- lib/libc/stdio/tmpfile.c 13 Oct 2002 11:22:16 -0000 1.8 +++ lib/libc/stdio/tmpfile.c 5 Feb 2003 23:37:28 -0000 @@ -61,6 +61,7 @@ char *buf; const char *tmpdir; + tmpdir = NULL; if (issetugid() == 0) tmpdir = getenv("TMPDIR"); if (tmpdir == NULL) --=.T+CaIkPSS+j)EG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+QaON2uHir9vMaLkRAnrfAKCJ/CtHbzHsgIFVM0FndgSAYmt/2wCfc0zf BjuJWYQSLkQeeVdM4XThQ2c= =ot8c -----END PGP SIGNATURE----- --=.T+CaIkPSS+j)EG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030205235146.ELJQ10203.pop017.verizon.net>