source: pkg/security/vinnie/main/asterisk/trunk/debian/patches/allow-tilde-destdir @ 7500

Revision 7500, 870 bytes checked in by alanbach-guest, 3 years ago (diff)
  • Added asterisk to Vinnie security
Line 
1Subject: relax badshell tilde test
2Author: Faidon Liambotis <paravoid@debian.org>
3Bug: http://issues.asterisk.org/view.php?id=14718
4Last-Update: 2009-12-19
5
6badshell is disallowing tildes (~) in the DESTDIR directory to warn people
7who use a shell that doesn't expand it to $HOMEDIR.
8
9However, we have such a tilde in our directory (~dfsg) that isn't expanded
10to $HOMEDIR nor shouldn't be.
11
12This patch relaxes this test just for cases where the ~ is followed by a '/',
13which should catch most cases.
14
15--- a/Makefile
16+++ b/Makefile
17@@ -616,7 +616,7 @@ oldmodcheck:
18        fi
19 
20 badshell:
21-ifneq ($(findstring ~,$(DESTDIR)),)
22+ifneq ($(findstring ~/,$(DESTDIR)),)
23        @echo "Your shell doesn't do ~ expansion when expected (specifically, when doing \"make install DESTDIR=~/path\")."
24        @echo "Try replacing ~ with \$$HOME, as in \"make install DESTDIR=\$$HOME/path\"."
25        @exit 1
Note: See TracBrowser for help on using the repository browser.