From dc04439450e5929880205d920de3a26409727563 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 23 Aug 2010 02:53:58 +0200 Subject: Version 1.17.2: apply post 1.17.1 fixes, replace patch applet by Rob's version Signed-off-by: Denys Vlasenko --- debianutils/mktemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debianutils') 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 */ -- cgit v1.1