diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-07-30 20:34:56 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-07-30 20:34:56 +0000 |
commit | fae6830ae508ba9f69d1147f0e3ac04fa23645b1 (patch) | |
tree | 232411b5bd148d491ddf49ef6e6458b756e341d2 /usr.bin/oldrdist/main.c | |
parent | 9f1ce502291b1ef4a0674512422a65282086574b (diff) |
use mkstemp() instead of mktemp() to close temp file race.
Diffstat (limited to 'usr.bin/oldrdist/main.c')
-rw-r--r-- | usr.bin/oldrdist/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/oldrdist/main.c b/usr.bin/oldrdist/main.c index ab1679d6a17..cb6960b15b4 100644 --- a/usr.bin/oldrdist/main.c +++ b/usr.bin/oldrdist/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.3 1996/07/19 21:57:33 millert Exp $ */ +/* $OpenBSD: main.c,v 1.4 1996/07/30 20:34:55 millert Exp $ */ /* * Copyright (c) 1983, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/9/93"; */ -static char *rcsid = "$OpenBSD: main.c,v 1.3 1996/07/19 21:57:33 millert Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.4 1996/07/30 20:34:55 millert Exp $"; #endif /* not lint */ #include "defs.h" @@ -197,7 +197,6 @@ main(argc, argv) exit(1); } #endif /* DIRECT_RCMD */ - mktemp(tempfile); if (iamremote) { server(); |