summaryrefslogtreecommitdiff
path: root/mkinstalldirs
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-02-02 13:09:26 +0000
committerGerd Moellmann <gerd@gnu.org>2001-02-02 13:09:26 +0000
commit1b66ab0e17a5dbb860545b9b13c4008a1ce5222b (patch)
tree57ee48a35098c3c2f9a55b7105be6bbeacafe65a /mkinstalldirs
parent5db37a2eb457e48e26a4ec7acb0f4e3dd5a4025a (diff)
downloademacs-1b66ab0e17a5dbb860545b9b13c4008a1ce5222b.tar.gz
(errstatus): Chmod a+rx directories we create.
Diffstat (limited to 'mkinstalldirs')
-rwxr-xr-xmkinstalldirs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkinstalldirs b/mkinstalldirs
index 319086a3a46..ef5a91716a6 100755
--- a/mkinstalldirs
+++ b/mkinstalldirs
@@ -4,7 +4,7 @@
# Created: 1993-05-16
# Public domain
-# $Id: mkinstalldirs,v 1.11 1998/05/19 07:05:25 drepper dead $
+# $Id: mkinstalldirs,v 1.1 2001/02/02 13:04:53 gerd Exp $
errstatus=0
@@ -24,7 +24,7 @@ do
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp" 1>&2
- mkdir "$pathcomp" || lasterr=$?
+ (mkdir "$pathcomp" && chmod a+rx "$pathcomp") || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr