From: Pavel Roskin Date: Mon, 26 Feb 2001 15:11:44 +0000 (+0000) Subject: * autoupdate.in (&mktmpdir): Strip the newline from the output X-Git-Tag: autoconf-2.50~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=760abff068ca4471bbb6d659d1116203d415ebf8;p=thirdparty%2Fautoconf.git * autoupdate.in (&mktmpdir): Strip the newline from the output of mktemp. --- diff --git a/ChangeLog b/ChangeLog index bd3122e9e..4e32febb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-02-26 Pavel Roskin + + * autoupdate.in (&mktmpdir): Strip the newline from the output + of mktemp. + 2001-02-26 Pavel Roskin * man/Makefile.am: autoupdate.1 now depends on autoupdate.in. diff --git a/autoupdate.in b/autoupdate.in index 7c5ffaac1..c136347b9 100644 --- a/autoupdate.in +++ b/autoupdate.in @@ -51,6 +51,7 @@ sub mktmpdir () # If mktemp supports dirs, use it to please Marc E. $tmp = `(umask 077 && mktemp -d -q "$TMPDIR/auXXXXXX") 2>/dev/null`; + chomp $tmp; if (!$tmp || !-d $tmp) { diff --git a/autoupdate.sh b/autoupdate.sh index 7c5ffaac1..c136347b9 100644 --- a/autoupdate.sh +++ b/autoupdate.sh @@ -51,6 +51,7 @@ sub mktmpdir () # If mktemp supports dirs, use it to please Marc E. $tmp = `(umask 077 && mktemp -d -q "$TMPDIR/auXXXXXX") 2>/dev/null`; + chomp $tmp; if (!$tmp || !-d $tmp) { diff --git a/bin/autoupdate.in b/bin/autoupdate.in index 7c5ffaac1..c136347b9 100644 --- a/bin/autoupdate.in +++ b/bin/autoupdate.in @@ -51,6 +51,7 @@ sub mktmpdir () # If mktemp supports dirs, use it to please Marc E. $tmp = `(umask 077 && mktemp -d -q "$TMPDIR/auXXXXXX") 2>/dev/null`; + chomp $tmp; if (!$tmp || !-d $tmp) {