diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-07-02 00:41:16 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-07-02 00:41:16 +0000 |
commit | 9cce1c403ce9ac9c03370f83e2027955898638dc (patch) | |
tree | d3278990a7722963cb37a82cd7598ca2ce8a7ec9 | |
parent | 21bb4a064acbe809c6d8175c1bb7b3db87ea68a5 (diff) |
bump mktemp randomness from 6 to 10 X's
-rw-r--r-- | usr.sbin/afs/src/appl/afsutils/klog.c | 2 | ||||
-rw-r--r-- | usr.sbin/afs/src/milko/lib/vld/common.c | 2 | ||||
-rw-r--r-- | usr.sbin/afs/src/ydr/output.c | 2 | ||||
-rw-r--r-- | usr.sbin/pkg_install/delete/perform.c | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/afs/src/appl/afsutils/klog.c b/usr.sbin/afs/src/appl/afsutils/klog.c index 9136820df1e..51811a6ca23 100644 --- a/usr.sbin/afs/src/appl/afsutils/klog.c +++ b/usr.sbin/afs/src/appl/afsutils/klog.c @@ -385,7 +385,7 @@ randfilename(void) #if defined(HAVE_KRB_GET_DEFAULT_TKT_ROOT) base = krb_get_default_tkt_root (); #endif - asprintf (&filename, "%s_%u_XXXXXX", base, (unsigned)getuid()); + asprintf (&filename, "%s_XXXXXXXXXX", base); if (filename == NULL) dietx (1, "out of memory"); diff --git a/usr.sbin/afs/src/milko/lib/vld/common.c b/usr.sbin/afs/src/milko/lib/vld/common.c index 03e905fe2a9..18b0b7db9f5 100644 --- a/usr.sbin/afs/src/milko/lib/vld/common.c +++ b/usr.sbin/afs/src/milko/lib/vld/common.c @@ -170,7 +170,7 @@ local_create_file (struct dp_part *dp, onode_opaque *o, int fd, ret; struct stat sb; - snprintf(nodename, sizeof(nodename), "%s/inodeXXXXXX", DP_NAME(dp)); + snprintf(nodename, sizeof(nodename), "%s/inodeXXXXXXXXXX", DP_NAME(dp)); fd = mkstemp(nodename); if (fd == -1) return errno; diff --git a/usr.sbin/afs/src/ydr/output.c b/usr.sbin/afs/src/ydr/output.c index c5d4749ab47..1712f6bd177 100644 --- a/usr.sbin/afs/src/ydr/output.c +++ b/usr.sbin/afs/src/ydr/output.c @@ -2126,7 +2126,7 @@ ydr_fopen (const char *name, const char *mode, ydr_file *f) { int streamfd; - asprintf (&f->curname, "%sXXXXXX", name); + asprintf (&f->curname, "%sXXXXXXXXXX", name); if (f->curname == NULL) err (1, "malloc"); diff --git a/usr.sbin/pkg_install/delete/perform.c b/usr.sbin/pkg_install/delete/perform.c index 856ad26ff02..f52a820bca3 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.12 2003/04/04 08:56:01 avsm Exp $ */ +/* $OpenBSD: perform.c,v 1.13 2003/07/02 00:41:15 avsm Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: perform.c,v 1.12 2003/04/04 08:56:01 avsm Exp $"; +static const char *rcsid = "$OpenBSD: perform.c,v 1.13 2003/07/02 00:41:15 avsm Exp $"; #endif /* @@ -279,7 +279,7 @@ undepend(const char *deppkgname, char *pkg2delname, int unused) pwarnx("couldn't open dependency file `%s'", fname); return 0; } - (void) snprintf(ftmp, sizeof(ftmp), "%s.XXXXXX", fname); + (void) snprintf(ftmp, sizeof(ftmp), "%s.XXXXXXXXXX", fname); s = mkstemp(ftmp); if (s == -1) { fclose(fp); |