diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-04 18:41:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-04 18:41:47 +0000 |
commit | 4cb76026747c1c4f9db0090c18888232ece673b0 (patch) | |
tree | 602a27b829dddac7decfb4066bdb458d30c95786 /bin/df/df.c | |
parent | 18423be53229bf49c861cdd4941144cdb72d7585 (diff) |
when mktemp() is hard to fix, use 10 X
Diffstat (limited to 'bin/df/df.c')
-rw-r--r-- | bin/df/df.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 307fe8df0ec..cd5ce73c468 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -1,4 +1,4 @@ -/* $OpenBSD: df.c,v 1.7 1996/12/24 20:04:14 deraadt Exp $ */ +/* $OpenBSD: df.c,v 1.8 1997/04/04 18:41:25 deraadt Exp $ */ /* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */ /* @@ -49,7 +49,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: df.c,v 1.7 1996/12/24 20:04:14 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: df.c,v 1.8 1997/04/04 18:41:25 deraadt Exp $"; #endif #endif /* not lint */ @@ -136,7 +136,7 @@ main(argc, argv) } else if (S_ISBLK(stbuf.st_mode)) { if ((mntpt = getmntpt(*argv)) == 0) { /* XXX can be DOS'd, not very important */ - mntpt = mktemp(strdup("/tmp/df.XXXXXX")); + mntpt = mktemp(strdup("/tmp/df.XXXXXXXXXX")); mdev.fspec = *argv; if (mkdir(mntpt, DEFFILEMODE) != 0) { warn("%s", mntpt); |