-/* $OpenBSD: pathnames.h,v 1.2 1996/06/26 05:31:57 deraadt Exp $ */
+/* $OpenBSD: pathnames.h,v 1.3 1996/09/16 02:26:02 deraadt Exp $ */
/* $NetBSD: pathnames.h,v 1.3 1995/03/26 04:55:29 glass Exp $ */
/*
#include <paths.h>
-#undef _PATH_TMP
-#define _PATH_TMP "/tmp/chpass.XXXXXX"
+#define _PATH_TMPFILE "/tmp/chpass.XXXXXX"
-/* $OpenBSD: pathnames.h,v 1.2 1996/06/26 05:32:44 deraadt Exp $ */
+/* $OpenBSD: pathnames.h,v 1.3 1996/09/16 02:26:04 deraadt Exp $ */
/* $NetBSD: pathnames.h,v 1.3 1995/09/02 06:15:40 jtc Exp $ */
/*
#define IG_FILE2 "llib-port"
#define IG_FILE3 "/usr/lib/llib-lc"
#define IG_FILE4 "/usr/lib/llib-port"
-#undef _PATH_TMP
-#define _PATH_TMP "/tmp/ErrorXXXXXX"
+#define _PATH_TMPFILE "/tmp/ErrorXXXXXX"
-/* $OpenBSD: touch.c,v 1.4 1996/09/16 01:47:06 deraadt Exp $ */
+/* $OpenBSD: touch.c,v 1.5 1996/09/16 02:26:05 deraadt Exp $ */
/* $NetBSD: touch.c,v 1.3 1995/09/02 06:15:54 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: touch.c,v 1.4 1996/09/16 01:47:06 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: touch.c,v 1.5 1996/09/16 02:26:05 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
processname, name);
return(TRUE);
}
- snprintf(n_name, sizeof n_name, "%s/error.XXXXXXXX", _PATH_TMP);
+ strcpy(n_name, _PATH_TMPFILE);
if ((fd = mkstemp(n_name)) == -1 ||
(n_touchedfile = fdopen(fd, "w")) == NULL) {
if (fd != -1)
-/* $OpenBSD: cmds.c,v 1.3 1996/09/09 04:44:38 downsj Exp $ */
+/* $OpenBSD: cmds.c,v 1.4 1996/09/16 02:26:06 deraadt Exp $ */
/* $NetBSD: cmds.c,v 1.8 1995/09/08 01:06:05 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: cmds.c,v 1.3 1996/09/09 04:44:38 downsj Exp $";
+static char rcsid[] = "$OpenBSD: cmds.c,v 1.4 1996/09/16 02:26:06 deraadt Exp $";
#endif
#endif /* not lint */
return (cp);
}
if (ftemp == NULL) {
- (void) strcpy(temp, _PATH_TMP);
+ (void) strcpy(temp, _PATH_TMPFILE);
(void) mktemp(temp);
oldverbose = verbose, verbose = 0;
oldhash = hash, hash = 0;
-/* $OpenBSD: pathnames.h,v 1.2 1996/06/26 05:33:38 deraadt Exp $ */
+/* $OpenBSD: pathnames.h,v 1.3 1996/09/16 02:26:07 deraadt Exp $ */
/* $NetBSD: pathnames.h,v 1.5 1995/09/08 01:06:40 tls Exp $ */
/*
#include <paths.h>
-#undef _PATH_TMP
-#define _PATH_TMP "/tmp/ftpXXXXXX"
+#define _PATH_TMPFILE "/tmp/ftpXXXXXX"
-/* $OpenBSD: main.c,v 1.2 1996/06/11 12:53:45 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $ */
/* $NetBSD: main.c,v 1.5 1996/06/08 19:48:31 christos Exp $ */
/*
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.2 1996/06/11 12:53:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $";
#endif
#endif /* not lint */
/*
* Next argument is person to pretend to be.
*/
+ unsetenv("MAIL");
myname = optarg;
break;
case 'i':
-/* $OpenBSD: temp.c,v 1.2 1996/06/11 12:53:51 deraadt Exp $ */
+/* $OpenBSD: temp.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $ */
/* $NetBSD: temp.c,v 1.5 1996/06/08 19:48:42 christos Exp $ */
/*
#if 0
static char sccsid[] = "@(#)temp.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: temp.c,v 1.2 1996/06/11 12:53:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: temp.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $";
#endif
#endif /* not lint */
tmpdir = _PATH_TMP;
}
- tempMail = tempnam (tmpdir, "Rs");
- tempResid = tempnam (tmpdir, "Rq");
- tempQuit = tempnam (tmpdir, "Rm");
- tempEdit = tempnam (tmpdir, "Re");
- tempMesg = tempnam (tmpdir, "Rx");
+ tempMail = tempnam(tmpdir, "Rs");
+ tempResid = tempnam(tmpdir, "Rq");
+ tempQuit = tempnam(tmpdir, "Rm");
+ tempEdit = tempnam(tmpdir, "Re");
+ tempMesg = tempnam(tmpdir, "Rx");
/*
* It's okay to call savestr in here because main will
-/* $OpenBSD: man.c,v 1.3 1996/07/18 22:52:58 michaels Exp $ */
+/* $OpenBSD: man.c,v 1.4 1996/09/16 02:26:10 deraadt Exp $ */
/* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95";
#else
-static char rcsid[] = "$OpenBSD: man.c,v 1.3 1996/07/18 22:52:58 michaels Exp $";
+static char rcsid[] = "$OpenBSD: man.c,v 1.4 1996/09/16 02:26:10 deraadt Exp $";
#endif
#endif /* not lint */
TAG *intmpp;
int fd, n;
char *p, *b;
- char buf[MAXPATHLEN], cmd[MAXPATHLEN], tpath[sizeof(_PATH_TMP)];
+ char buf[MAXPATHLEN], cmd[MAXPATHLEN], tpath[MAXPATHLEN];
/* Let the user know this may take awhile. */
if (!warned) {
* Get a temporary file and build a version of the file
* to display. Replace the old file name with the new one.
*/
- (void)strcpy(tpath, _PATH_TMP);
+ (void)strcpy(tpath, _PATH_TMPFILE);
if ((fd = mkstemp(tpath)) == -1) {
warn("%s", tpath);
(void)cleanup();
-/* $OpenBSD: pathnames.h,v 1.2 1996/06/26 05:37:03 deraadt Exp $ */
+/* $OpenBSD: pathnames.h,v 1.3 1996/09/16 02:26:11 deraadt Exp $ */
/* $NetBSD: pathnames.h,v 1.3 1995/09/28 06:05:40 tls Exp $ */
/*
#define _PATH_MANCONF "/etc/man.conf"
#define _PATH_PAGER "/usr/bin/more -s"
-#define _PATH_TMP "/tmp/man.XXXXXX"
+#define _PATH_TMPFILE "/tmp/man.XXXXXX"
#define _PATH_WHATIS "whatis.db"
-/* $OpenBSD: msgs.c,v 1.3 1996/06/26 05:37:18 deraadt Exp $ */
+/* $OpenBSD: msgs.c,v 1.4 1996/09/16 02:26:12 deraadt Exp $ */
/* $NetBSD: msgs.c,v 1.7 1995/09/28 06:57:40 tls Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: msgs.c,v 1.3 1996/06/26 05:37:18 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: msgs.c,v 1.4 1996/09/16 02:26:12 deraadt Exp $";
#endif
#endif /* not lint */
strcpy(fname, "Messages");
}
else {
- strcpy(fname, _PATH_TMP);
+ strcpy(fname, _PATH_TMPFILE);
mktemp(fname);
sprintf(cmdbuf, _PATH_MAIL, fname);
mailing = YES;
-/* $OpenBSD: pathnames.h,v 1.2 1996/06/26 05:37:18 deraadt Exp $ */
+/* $OpenBSD: pathnames.h,v 1.3 1996/09/16 02:26:13 deraadt Exp $ */
/* $NetBSD: pathnames.h,v 1.3 1995/09/28 06:57:41 tls Exp $ */
/*
#define _PATH_MSGS "/var/msgs"
#define _PATH_MAIL "/usr/bin/Mail -f %s"
#define _PATH_PAGER "/usr/bin/more -%d"
-#undef _PATH_TMP
-#define _PATH_TMP "/tmp/msgXXXXXX"
+#define _PATH_TMPFILE "/tmp/msgXXXXXX"
-/* $OpenBSD: rwall.c,v 1.2 1996/06/26 05:38:58 deraadt Exp $ */
+/* $OpenBSD: rwall.c,v 1.3 1996/09/16 02:26:14 deraadt Exp $ */
/*
* Copyright (c) 1993 Christopher G. Demetriou
#ifndef lint
/*static char sccsid[] = "from: @(#)wall.c 5.14 (Berkeley) 3/2/91";*/
-static char rcsid[] = "$OpenBSD: rwall.c,v 1.2 1996/06/26 05:38:58 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rwall.c,v 1.3 1996/09/16 02:26:14 deraadt Exp $";
#endif /* not lint */
/*
char *whom, hostname[MAXHOSTNAMELEN], lbuf[100], tmpname[32];
(void)strcpy(tmpname, _PATH_TMP);
- (void)strcat(tmpname, "/wall.XXXXXX");
+ (void)strcat(tmpname, "wall.XXXXXX");
if (!(fd = mkstemp(tmpname)) || !(fp = fdopen(fd, "r+"))) {
(void)fprintf(stderr, "wall: can't open temporary file.\n");
exit(1);
-/* $OpenBSD: wall.c,v 1.6 1996/09/02 09:07:35 deraadt Exp $ */
+/* $OpenBSD: wall.c,v 1.7 1996/09/16 02:26:18 deraadt Exp $ */
/* $NetBSD: wall.c,v 1.6 1994/11/17 07:17:58 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wall.c 8.2 (Berkeley) 11/16/93";
#endif
-static char rcsid[] = "$OpenBSD: wall.c,v 1.6 1996/09/02 09:07:35 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wall.c,v 1.7 1996/09/16 02:26:18 deraadt Exp $";
#endif /* not lint */
/*
char tmpbuf[5];
(void)strcpy(tmpname, _PATH_TMP);
- (void)strcat(tmpname, "/wall.XXXXXX");
+ (void)strcat(tmpname, "wall.XXXXXX");
if (!(fd = mkstemp(tmpname)) || !(fp = fdopen(fd, "r+"))) {
(void)fprintf(stderr, "wall: can't open temporary file.\n");
exit(1);
-/* $OpenBSD: pathnames.h,v 1.2 1996/06/26 05:44:33 deraadt Exp $ */
+/* $OpenBSD: pathnames.h,v 1.3 1996/09/16 02:26:20 deraadt Exp $ */
/* $NetBSD: pathnames.h,v 1.3 1994/11/14 04:56:22 jtc Exp $ */
/*
* SUCH DAMAGE.
*
* @(#)pathnames.h 8.1 (Berkeley) 6/9/93
- * $NetBSD: pathnames.h,v 1.3 1994/11/14 04:56:22 jtc Exp $
*/
-#define _PATH_TMP "/tmp/xstrXXXXXX"
+#define _PATH_TMPFILE "/tmp/xstrXXXXXX"
-/* $OpenBSD: xstr.c,v 1.2 1996/06/26 05:44:34 deraadt Exp $ */
+/* $OpenBSD: xstr.c,v 1.3 1996/09/16 02:26:20 deraadt Exp $ */
/* $NetBSD: xstr.c,v 1.5 1994/12/24 16:57:59 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)xstr.c 8.1 (Berkeley) 6/9/93";
#endif
-static char rcsid[] = "$OpenBSD: xstr.c,v 1.2 1996/06/26 05:44:34 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: xstr.c,v 1.3 1996/09/16 02:26:20 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
if (cflg || argc == 0 && !readstd)
inithash();
else
- strings = mktemp(strdup(_PATH_TMP));
+ strings = mktemp(strdup(_PATH_TMPFILE));
while (readstd || argc > 0) {
if (freopen("x.c", "w", stdout) == NULL)
perror("x.c"), exit(1);