> Um, gack. You could do it with replication instead of shifts with > something like: > > rights = ((old_mode & 0777 & who_masks[what_letter]) * 0111111) >> 9 > value = rights & 0777 & who_masks[who_letter] > >
> > rights = ((old_mode & who_masks[what_letter]) * 0111111) >> 9 > value = rights & who_masks[who_letter] > > I really am using the s and t bits in the mask, I handle g+s and u+s and o+t the same way chmod does - which is to say, it's ignored for the +[ugo] process. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-...@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.