TMPDIR (was Re: Nasty Security Hole?)

Richard A. O'Keefe ok at quintus.uucp
Sun Nov 27 17:06:56 AEST 1988


In article <6527 at june.cs.washington.edu> ka at june.cs.washington.edu (Kenneth Almquist) writes:
>It would certainly possible for AT&T to give each user his or her own
>temporary directory and to modify the standard System V programs to use
>this directory.

See TEMPNAM(BA_LIB) in the SVID.
	char *tempnam(char *dir, char *prefix)
If TMPDIR is defined in the user's environment and can be used, use that.
If dir is non-NULL and names a usable directory, use that.
If P_tmpdir (in <stdio.h>, usually /usr/tmp/) is usable, use that.
Use /tmp only as a last resort.

(Yes, that's right, $TMPDIR over-rides the dir argument.)



More information about the Comp.unix.wizards mailing list