summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/delete/perform.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-17 08:38:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-17 08:38:04 +0000
commitd6aaf94f9b2819683f638e9eabdf0b8a890dd71a (patch)
tree50b3e8449a29a152c70d7a2cbde86935ac0c82b6 /usr.sbin/pkg_install/delete/perform.c
parente0b95274df2684f64e033e5dd525cb6a2efad3b2 (diff)
use mktemp, but use it without guessability or DOS attacks
Diffstat (limited to 'usr.sbin/pkg_install/delete/perform.c')
-rw-r--r--usr.sbin/pkg_install/delete/perform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/delete/perform.c b/usr.sbin/pkg_install/delete/perform.c
index 06edcaad3d7..0478d86b566 100644
--- a/usr.sbin/pkg_install/delete/perform.c
+++ b/usr.sbin/pkg_install/delete/perform.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: perform.c,v 1.2 1996/06/04 08:43:38 niklas Exp $ */
+/* $OpenBSD: perform.c,v 1.3 1997/06/17 08:38:03 deraadt Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: perform.c,v 1.2 1996/06/04 08:43:38 niklas Exp $";
+static const char *rcsid = "$OpenBSD: perform.c,v 1.3 1997/06/17 08:38:03 deraadt Exp $";
#endif
/*
@@ -177,7 +177,7 @@ undepend(PackingList p, char *pkgname)
whinge("Couldn't open dependency file `%s'", fname);
return;
}
- sprintf(ftmp, "%s.XXXXXX", fname);
+ sprintf(ftmp, "%s.XXXXXXXXXX", fname);
s = mkstemp(ftmp);
if (s == -1) {
fclose(fp);