summaryrefslogtreecommitdiff
path: root/Src/Modules/attr.c
AgeCommit message (Collapse)AuthorFilesLines
2015-08-2836302: attr: Fix compilation with libcap 2.24Mikael Magnusson1-3/+3
2014-11-0733607: Fix some minor problems in zattr moduleMikael Magnusson1-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).
2009-11-07Mikael: 27362: some more attr fixesPeter Stephenson1-6/+6
2009-11-0627357: fix compiler warnings in attr modulePeter Stephenson1-4/+4
27358: fix error if $0 altered in sourced file
2009-11-05Jun T.: 27351: zdelattr missed first argumentPeter Stephenson1-1/+1
2009-11-04Mikael: 27347: enhance extended attribute supportPeter Stephenson1-61/+149
2009-03-0826697: test for Linux- and Mac-style xattr functionsPeter Stephenson1-5/+25
2009-03-0326671: various minor attribute tidy upsPeter Stephenson1-17/+17
2009-03-03Mikael Magnusson: 26670: add zsh/attr modulePeter Stephenson1-0/+174