For the purposes of discussion, attached is a patch which changes the mode which setup gives /var/log from 1777 to 0777.

See this thread [1] for why I think I want to do this.

I haven't thought at all about the security implications of this change at all.

I have observed that /var/log has mode 0755 on a couple of linux systems I've looked at.

It looks like the setting of mode 1777 was added by Corrina on 2008-08-20, I'm guessing as part of the Cygwin 1.7 changes.

[1] http://cygwin.com/ml/cygwin-xfree/2010-08/msg00090.html
Index: install.cc
===================================================================
RCS file: /cvs/cygwin-apps/setup/install.cc,v
retrieving revision 2.96
diff -r2.96 install.cc
138c138
<   { "/var/log", 01777 },
---
>   { "/var/log", 0777 },
Index: localdir.cc
===================================================================
RCS file: /cvs/cygwin-apps/setup/localdir.cc,v
retrieving revision 2.37
diff -r2.37 localdir.cc
80c80
<       mkdir_p (1, cygpath ("/var/log").c_str (), 01777);
---
>       mkdir_p (1, cygpath ("/var/log").c_str (), 0777);

Reply via email to