This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[patch] Create directories with 755 instead of 644.
- From: David Rothenberger <daveroth at acm dot org>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 13 Oct 2005 13:40:38 -0700
- Subject: [patch] Create directories with 755 instead of 644.
- Reply-to: cygwin-patches at cygwin dot com
I attempted to build the Cygwin DLL from CVS today and encountered
permission denied errors from the install target in winsup/cygwin. The
problem appears to be that directories are precreated using "install -m
644". With 644 permissions, subsequent install calls to copy files to
those directories fail.
The following patch fixed the problem for me.
ChangeLog for winsup/cygwin:
2005-10-13 David Rothenberger <daveroth@acm.org>
* Makefile.in: Create directories with 755 permissions.
--
David Rothenberger spammer? -> spam@daveroth.dyndns.org
GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734
Klatu barada nikto.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/Makefile.in,v
retrieving revision 1.181
diff -u -p -r1.181 Makefile.in
--- Makefile.in 11 Oct 2005 18:27:05 -0000 1.181
+++ Makefile.in 13 Oct 2005 20:35:25 -0000
@@ -69,7 +69,7 @@ OBJCOPY:=@OBJCOPY@
OBJDUMP:=@OBJDUMP@
STRIP:=@STRIP@
LDSCRIPT:=cygwin.sc
-MKDIRP:=$(INSTALL_DATA) -d
+MKDIRP:=$(INSTALL_DATA) -d -m 755
#
# Include common definitions for winsup directory