projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d0351
)
mktemp: fix for dir/file.XXXXXX param (by Rob). +9 bytes.
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 27 Jul 2010 06:26:32 +0000
(08:26 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 27 Jul 2010 06:26:32 +0000
(08:26 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
debianutils/mktemp.c
patch
|
blob
|
history
diff --git
a/debianutils/mktemp.c
b/debianutils/mktemp.c
index 2c4e19670566a3ff1bc02f251e8f64a1fbb1f192..7ce9f1096ed4c28ca7c13671da007fd0b5caa12c 100644
(file)
--- a/
debianutils/mktemp.c
+++ b/
debianutils/mktemp.c
@@
-50,7
+50,7
@@
int mktemp_main(int argc UNUSED_PARAM, char **argv)
opts = getopt32(argv, "dqtp:", &path);
chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX");
- if (
chp[0] != '/'
|| (opts & 8))
+ if (
!strchr(chp, '/')
|| (opts & 8))
chp = concat_path_file(path, chp);
if (opts & 1) { /* -d */