version 1.11, 2000/08/02 04:10:48 |
version 1.12, 2001/11/21 15:26:39 |
|
|
|
|
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)temp.c 8.1 (Berkeley) 6/6/93"; |
static const char sccsid[] = "@(#)temp.c 8.1 (Berkeley) 6/6/93"; |
#else |
#else |
static char rcsid[] = "$OpenBSD$"; |
static const char rcsid[] = "$OpenBSD$"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
* Give names to all the temporary files that we will need. |
* Give names to all the temporary files that we will need. |
*/ |
*/ |
|
|
char *tmpdir; |
char *tmpdir; |
|
|
void |
void |
tinit() |
tinit(void) |
{ |
{ |
char *cp; |
char *cp; |
|
|
|
|
* do a spreserve() after us. |
* do a spreserve() after us. |
*/ |
*/ |
if (myname != NULL) { |
if (myname != NULL) { |
if (getuserid(myname) < 0) |
if (getuserid(myname) == UID_MAX) |
errx(1, "\"%s\" is not a user of this system", myname); |
errx(1, "\"%s\" is not a user of this system", myname); |
} else { |
} else { |
if ((cp = username()) == NULL) { |
if ((cp = username()) == NULL) { |