Mantis - gsed
Viewing Issue Advanced Details
5092 upgrade major always 2013-07-15 17:12 2014-03-24 00:48
opk  
 
normal  
new  
open  
none    
none  
0005092: gsed -i sets file permissions to 0000 due to acl calls failing
When using gsed 4.2.2 on a cluster file system (pxfs), optionally via NFSv3, gsed -i is setting the file permissions to 0000 after printing "Unknown system error". Clearing the permissions like this is far worse than if it was to simply not preserve the ACLs.
The problem os due to the calls to get the file ACLs. From truss:
facl(3, ACE_GETACLCNT, 0, 0x00000000) = 4
facl(3, ACE_GETACL, 4, 0x000487B8) Err#-1

The ACE variants don't work in this case. With gsed 4.2.1, I have instead:

facl(3, GETACLCNT, 0, 0x00000000) = 4
facl(3, GETACL, 4, 0x00045930) = 4
facl(4, SETACL, 4, 0x00045930) = 0
Issue History
2013-07-15 17:12 opk New Issue
2014-03-24 00:48 maciej Note Added: 0010772

Notes
(0010772)
maciej   
2014-03-24 00:48   
There is no point in waiting for this bug to be fixed. If you want it fixed, you (yes, you the reader) need to fix it yourself. If you're not already a package maintainer at OpenCSW, you can look at the 35 minute long tutorial[1] to get started - then you can offer your patch to package maintainers. You can find OpenCSW people on the users mailing list[2] and on the #opencsw channel on IRC on Freenode[3].

[1] Packaging tutorial http://youtu.be/JWKCbPJSaxw [^]
[2] OpenCSW users mailing list https://lists.opencsw.org/mailman/listinfo/users [^]
[3] #opencsw on Freenode http://www.opencsw.org/support/irc-channel/ [^]