[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox-cvs
Subject: [git commit master 1/1] mktemp: fix for dir/file.XXXXXX param (by Rob). +9 bytes.
From: vda.linux () googlemail ! com (Denys Vlasenko)
Date: 2010-07-27 6:26:32
Message-ID: 20100727062717.DDA6D81815 () busybox ! osuosl ! org
[Download RAW message or body]
commit: http://git.busybox.net/busybox/commit/?id=06702365d7faf47ebfc5b5453d73ade235ea4c65
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
debianutils/mktemp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/debianutils/mktemp.c b/debianutils/mktemp.c
index 2c4e196..7ce9f10 100644
--- 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 */
--
1.7.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic