about summary refs log tree commit diff
path: root/Src/Modules/attr.c
Commit message (Collapse)AuthorAgeFilesLines
* 33607: Fix some minor problems in zattr moduleMikael Magnusson2014-11-071-37/+30
| | | | | | | | | | | | | | | | | | | Remove the listattr call in zgetattr, it only caused no error to be output when trying to retrieve an xattr from a file with no xattrs. When a file had xattrs, it would just add an extra syscall for no good reason. Always set an array parameter in zlistattr, this makes the returned value much easier to use; in fact the _zattr completer didn't account for this and zlistattr foo <tab> on a file with only one attribute did not work. Almost all of the patch is only reindent, the only modification that's not a pure deletions is: - ret = 1 + (attr_len > val_len || attr_len < 0); + ret = 1 + ((val_len > 0 && attr_len > val_len) || attr_len < 0); which makes sure we return the correct error in the new path due to the removed listattr call. (If val_len is -1 due to no attribute existing, it doesn't mean the user should retry the call because the attribute grew in size).
* Mikael: 27362: some more attr fixesPeter Stephenson2009-11-071-6/+6
|
* 27357: fix compiler warnings in attr modulePeter Stephenson2009-11-061-4/+4
| | | | 27358: fix error if $0 altered in sourced file
* Jun T.: 27351: zdelattr missed first argumentPeter Stephenson2009-11-051-1/+1
|
* Mikael: 27347: enhance extended attribute supportPeter Stephenson2009-11-041-61/+149
|
* 26697: test for Linux- and Mac-style xattr functionsPeter Stephenson2009-03-081-5/+25
|
* 26671: various minor attribute tidy upsPeter Stephenson2009-03-031-17/+17
|
* Mikael Magnusson: 26670: add zsh/attr modulePeter Stephenson2009-03-031-0/+174