Issue #14360 has been updated by Michael Bacon.

I'd like to re-open this with more information.

The capital X symbolic mode appears to do the wrong thing regardless of whether 
it's an individual file or a recursive directory:

Before puppet run:

$ ls -lR testperms.*
-r--r--r--. 1 XXX XXX    0 Aug  1 11:38 testperms.444.gX
-r--r--r--. 1 XXX XXX    0 Aug  1 11:39 testperms.644.gX

testperms.dir.755.gX:
total 0
-r--r--r--. 1 XXX XXX 0 Aug  1 11:38 testperms.444.gX
-r--r--r--. 1 XXX XXX 0 Aug  1 11:39 testperms.644.gX


Puppet code:
  file { '/tmp/testperms.444.gX':
    mode => 'g+X',
  }

  file { '/tmp/testperms.644.gX':
    mode => 'g+X',
  }

  file { '/tmp/testperms.dir.755.gX':
   mode => 'g+X',
   recurse => true,
  }

After puppet run:

$ ls -lR testperms.*
-r--r-xr--. 1 XXX XXX    0 Aug  1 11:38 /tmp/testperms.444.gX
-r--r-xr--. 1 XXX XXX    0 Aug  1 11:39 /tmp/testperms.644.gX

testperms.dir.755.gX:
total 0
-r--r-xr--. 1 XXX XXX 0 Aug  1 11:42 testperms.444.gX
-rw-r-xr--. 1 XXX XXX 0 Aug  1 11:42 testperms.644.gX

Please re-open this case.

----------------------------------------
Bug #14360: Symbolic modes mis-handle the capital X option.
https://projects.puppetlabs.com/issues/14360#change-95848

* Author: Trevor Vaughan
* Status: Needs More Information
* Priority: Normal
* Assignee: 
* Category: file
* Target version: 
* Affected Puppet version: 2.7.13
* Keywords: file, symbolic mode
* Branch: 
----------------------------------------
Setting the mode on a directory to recursively be 'u+rwX,g+rX,o-rwx' causes the 
execute bit to be flipped on for the files under the directory.

The Capital X option should only add execute permissions if the object is a 
directory.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to