]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Turns out GNU people are retarded.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 17 Nov 2015 19:53:18 +0000 (14:53 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 17 Nov 2015 19:56:14 +0000 (14:56 -0500)
If "install-sh" is asked to do an installation, it helpfully
creates the destination directory for you.  Then, if the install
target is a directory, it tries to create the directory.  Which
was just created.  And then it fails with an error.

install-sh

index e9de23842dcd44d2953129c866b1ad25f7e1f1d9..a212b3160b205a9799096c6adef300592455c79d 100755 (executable)
@@ -192,7 +192,7 @@ fi
 
 if [ x"$dir_arg" != x ]
 then
-       $doit $instcmd $dst &&
+       ([ -d $dst ] || $doit $instcmd $dst) &&
 
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&