Issue #18355 has been reported by Josh Cooper.
----------------------------------------
Bug #18355: Puppet sets the sticky bit when it shouldn't when applying the
symbolic mode ugo=rwxs to a file
https://projects.puppetlabs.com/issues/18355
Author: Josh Cooper
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords: file symbolic mode
Branch:
When applying the symbolic mode ugo=rwxs to a file, puppet sets the mode to
07777 instead of 0677. Note the sticky bit corresponds to the 't' flag, whereas
's' sets the setuid/setgid bits depending on which user classes it is applied
to.
<pre>
$ touch foobar
$ chmod ugo=rwxs foobar
$ ls -lH foobar
-rwsrwsrwx 1 josh staff 0B Jan 3 16:23 foobar*
</pre>
<pre>
$ puppet resource file ~/work/puppet/foobar ensure=file mode=ugo=rwxs
Notice: /File[/Users/josh/work/puppet/foobar]/mode: mode changed '6777' to
'7777' (ugo=rwxs)
file { '/Users/josh/work/puppet/foobar':
ensure => 'file',
mode => '7777',
}
</pre>
There is a commented out acceptance test for this as part of #17994.
--
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.