This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Group execute permission regression (??): causing problem in fossil.


Hi All,

Starting with the upgrade to Cygwin (latest: 1.7.34), fossil started to
behave strangely: Every file committed to a fossil repository suddenly
had the execute permission bit set! With 1.7.33 this didn't happen.
The cause of this problem was that apparently starting with Cygwin
1.7.34, the group permission bit in some directories is always set, and
cannot be unset. For example from my checked-out fossil repository:

    nijtmaj <path>/workspace/fossil
    $ ls -la .fossil-settings
    total 20
    drwxrwxr-x+ 1 nijtmaj None   0 Feb  6 16:48 .
    drwxrwxr-x+ 1 nijtmaj None   0 Feb  6 16:48 ..
    -rw-rwxr--+ 1 nijtmaj None 140 Feb  6 16:48 clean-glob
    -rw-rwxr--+ 1 nijtmaj None  55 Feb  6 16:48 encoding-glob
    -rw-rwxr--+ 1 nijtmaj None  61 Feb  6 16:48 ignore-glob
    -rw-rwxr--+ 1 nijtmaj None  61 Feb  6 16:48 keep-glob

    nijtmaj <path>/workspace/fossil
    $ chmod a-x .fossil-settings/*

    nijtmaj <path>/workspace/fossil
    $ ls -la .fossil-settings
    total 20
    drwxrwxr-x+ 1 nijtmaj None   0 Feb  6 16:48 .
    drwxrwxr-x+ 1 nijtmaj None   0 Feb  6 16:48 ..
    -rw-rwxr--+ 1 nijtmaj None 140 Feb  6 16:48 clean-glob
    -rw-rwxr--+ 1 nijtmaj None  55 Feb  6 16:48 encoding-glob
    -rw-rwxr--+ 1 nijtmaj None  61 Feb  6 16:48 ignore-glob
    -rw-rwxr--+ 1 nijtmaj None  61 Feb  6 16:48 keep-glob


For some reason, the group execute permission bit of those
files is always set, and cannot be unset.

When fossil commits a file, it looks at the current file
permissions (either user, group or other) here:
      <http://www.fossil-scm.org/index.html/artifact/6c218bb03870305f?ln=253>
that's where the sudden change comes from.

A workaround for this problem is committed in fossil now, but it's puzzling
to me why this happens. Not all directories behave like this, so it
probably has a relation with permissions .......

Hoping someone can shine a light on that!

Regards,
      Jan Nijtmans

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]