<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zsh/Src/Modules/attr.c, branch zsh-5.7.1</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/zsh/atom/Src/Modules/attr.c?h=zsh-5.7.1</id>
<link rel='self' href='http://git.sudomsg.com/mirror/zsh/atom/Src/Modules/attr.c?h=zsh-5.7.1'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/'/>
<updated>2015-08-28T03:12:29Z</updated>
<entry>
<title>36302: attr: Fix compilation with libcap 2.24</title>
<updated>2015-08-28T03:12:29Z</updated>
<author>
<name>Mikael Magnusson</name>
<email>mikachu@gmail.com</email>
</author>
<published>2015-08-27T18:58:57Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=9ca9a092deed209a2591c38c8fe1fe6c0debff7d'/>
<id>urn:sha1:9ca9a092deed209a2591c38c8fe1fe6c0debff7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>33607: Fix some minor problems in zattr module</title>
<updated>2014-11-07T10:10:30Z</updated>
<author>
<name>Mikael Magnusson</name>
<email>mikachu@gmail.com</email>
</author>
<published>2014-11-06T15:06:23Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=a9004ce32f79f2244f0882bd0e69248ea0c9c791'/>
<id>urn:sha1:a9004ce32f79f2244f0882bd0e69248ea0c9c791</id>
<content type='text'>
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 &lt;tab&gt; 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 &gt; val_len || attr_len &lt; 0);
 +        ret = 1 + ((val_len &gt; 0 &amp;&amp; attr_len &gt; val_len) || attr_len &lt; 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).
</content>
</entry>
<entry>
<title>Mikael: 27362: some more attr fixes</title>
<updated>2009-11-07T23:57:27Z</updated>
<author>
<name>Peter Stephenson</name>
<email>pws@users.sourceforge.net</email>
</author>
<published>2009-11-07T23:57:27Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=a3055b2363b29b7a1569bb2da3a95116cc33dd27'/>
<id>urn:sha1:a3055b2363b29b7a1569bb2da3a95116cc33dd27</id>
<content type='text'>
</content>
</entry>
<entry>
<title>27357: fix compiler warnings in attr module</title>
<updated>2009-11-06T22:38:47Z</updated>
<author>
<name>Peter Stephenson</name>
<email>pws@users.sourceforge.net</email>
</author>
<published>2009-11-06T22:38:47Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=f30af94885279cae22ea0c60f74c5444490a3be9'/>
<id>urn:sha1:f30af94885279cae22ea0c60f74c5444490a3be9</id>
<content type='text'>
27358: fix error if $0 altered in sourced file
</content>
</entry>
<entry>
<title>Jun T.: 27351: zdelattr missed first argument</title>
<updated>2009-11-05T09:44:32Z</updated>
<author>
<name>Peter Stephenson</name>
<email>pws@users.sourceforge.net</email>
</author>
<published>2009-11-05T09:44:32Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=39e4cfd4db1615f50cff0d5dfd7921a72ee8d125'/>
<id>urn:sha1:39e4cfd4db1615f50cff0d5dfd7921a72ee8d125</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mikael: 27347: enhance extended attribute support</title>
<updated>2009-11-04T11:33:59Z</updated>
<author>
<name>Peter Stephenson</name>
<email>pws@users.sourceforge.net</email>
</author>
<published>2009-11-04T11:33:59Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=eeb5b6c941c7ae0ec832e9ce569b23ee02169b26'/>
<id>urn:sha1:eeb5b6c941c7ae0ec832e9ce569b23ee02169b26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>26697: test for Linux- and Mac-style xattr functions</title>
<updated>2009-03-08T20:20:47Z</updated>
<author>
<name>Peter Stephenson</name>
<email>pws@users.sourceforge.net</email>
</author>
<published>2009-03-08T20:20:47Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=6594c0375b91c3aa1bd991c30ae50197a6d889d4'/>
<id>urn:sha1:6594c0375b91c3aa1bd991c30ae50197a6d889d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>26671: various minor attribute tidy ups</title>
<updated>2009-03-03T16:40:34Z</updated>
<author>
<name>Peter Stephenson</name>
<email>pws@users.sourceforge.net</email>
</author>
<published>2009-03-03T16:40:34Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=919f7b12ad4cd6e4b6745e7ea647b9bf0e58c70c'/>
<id>urn:sha1:919f7b12ad4cd6e4b6745e7ea647b9bf0e58c70c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mikael Magnusson: 26670: add zsh/attr module</title>
<updated>2009-03-03T15:04:15Z</updated>
<author>
<name>Peter Stephenson</name>
<email>pws@users.sourceforge.net</email>
</author>
<published>2009-03-03T15:04:15Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/zsh/commit/?id=d58e5061ad49a3778dd1295e28810ad1f6e44cf6'/>
<id>urn:sha1:d58e5061ad49a3778dd1295e28810ad1f6e44cf6</id>
<content type='text'>
</content>
</entry>
</feed>
