Jira (PUP-9394) File mode X should work with the = operator

2019-03-28 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9394  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: File mode X should work with the = operator   
 

  
 
 
 
 

 
 Given puppet has pretty much always had "0644 → 0755 behavior" for directories, I don't think we should attempt to change that behavior when using symbolic file modes, as it would be inconsistent when not using symbolic file modes. Also using syntax that looks like what you'd pass to chmod, but actually behaves differently could be surprising in a bad way (granting more permissions than expected). Given that, we're going to close this.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9394) File mode X should work with the = operator

2019-01-07 Thread Daniel Parks (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Parks assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9394  
 
 
  File mode X should work with the = operator   
 

  
 
 
 
 

 
Change By: 
 Daniel Parks  
 
 
Assignee: 
 Daniel Parks  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9394) File mode X should work with the = operator

2019-01-07 Thread Daniel Parks (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Parks commented on  PUP-9394  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: File mode X should work with the = operator   
 

  
 
 
 
 

 
 Right. I'm asking for it not to match chmod's behavior.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9394) File mode X should work with the = operator

2019-01-07 Thread Jacob Helwig (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jacob Helwig assigned an issue to Daniel Parks  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9394  
 
 
  File mode X should work with the = operator   
 

  
 
 
 
 

 
Change By: 
 Jacob Helwig  
 
 
Assignee: 
 Daniel Parks  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9394) File mode X should work with the = operator

2019-01-07 Thread Jacob Helwig (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jacob Helwig commented on  PUP-9394  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: File mode X should work with the = operator   
 

  
 
 
 
 

 
 So, adding "u=rX" support would directly contradict how chmod works from what I'm reading in the manpage where "X" only works with "+" (as is mentioned in the error message in the ticket description).  
 
 
 
 
X   The execute/search bits if the file is a directory or any of the execute/search bits are set in the original  
 
 
 (unmodified) mode.  Operations with the perm symbol ``X'' are only meaningful in con-  
 
 
 junction with the op symbol ``+'', and are ignored in all other cases.
  
 
 
 
  So, if we're trying to match chmod's behavior exactly, then this looks like something we couldn't do.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

 

Jira (PUP-9394) File mode X should work with the = operator

2019-01-07 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9394  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: File mode X should work with the = operator   
 

  
 
 
 
 

 
 chmod u=X will also add the execute bit to a file if it's not already set. I assume that's desirable to match the chmod behavior exactly, in which case puppet's current behavior (made readable directories executable) is not sufficient. /cc Jacob Helwig  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9394) File mode X should work with the = operator

2019-01-07 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9394  
 
 
  File mode X should work with the = operator   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Team: 
 Coremunity  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9394) File mode X should work with the = operator

2019-01-03 Thread Daniel Parks (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Parks updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9394  
 
 
  File mode X should work with the = operator   
 

  
 
 
 
 

 
Change By: 
 Daniel Parks  
 
 
Labels: 
 customer0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9394) File mode X should work with the = operator

2019-01-03 Thread Daniel Parks (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Parks created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9394  
 
 
  File mode X should work with the = operator   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2019/01/03 12:13 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Daniel Parks  
 

  
 
 
 
 

 
 Setting mode => 'u=rwX,go=rX' or similar symbolic modes on File resources fails with the following error: 

File[/foo]/mode: change from '0755' to 'u=rwX,go=rX' failed: X only works with the '+' operator at "u=rwX" in symbolic mode "u=rwX,go=rX"
 It would be helpful if X worked with the = operator. In that case, it would only set the execute bit if the resource represented a directory. I realize that this isn't the way chmod works. I know that I can use '0644' and it will automatically apply '0755', but that's weird and surprising. Using X in symbolic mode is much clearer and more intuitive.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment