Home | History | Annotate | Download | only in extattr
History log of /src/usr.bin/extattr/getextattr.c
RevisionDateAuthorComments
 1.13  07-Apr-2022  andvar fix various typos in comments.
 1.12  20-Jun-2014  manu Use returned size and not buffer max length when displaying attribute
From Thomas Schmitt <scdbackup@gmx.net>
 1.11  20-Jun-2014  manu Do not record a trailing \0
From Thomas Schmitt <scdbackup@gmx.net>
 1.10  17-Jun-2012  manu branches: 1.10.2; 1.10.8;
Fix off-by-one in hexdump display (getextattr -x), which displayed a
trailing garbage byte.
 1.9  16-Sep-2011  joerg branches: 1.9.2; 1.9.4;
Use __dead
 1.8  14-Jul-2011  manu Improve extended attribute commands:
- allow namespace to be omitted when using a namespace-prefixed attribute
name, a la Linux.
- Improve hexdump for getextattr -x
- Add more display option for binary attributes, using vis(3)
- Add a -i option to setextattr to get the attribute value from file, so
that we can set binary values
 1.7  04-Jul-2011  manu Add a flag to VOP_LISTEXTATTR(9) so that the vnode interface can tell the
filesystem in which format extended attribute shall be listed.

There are currently two formats:
- NUL-terminated strings, used for listxattr(2), this is the default.
- one byte length-pprefixed, non NUL-terminated strings, used for
extattr_list_file(2), which is obtanined by setting the
EXTATTR_LIST_PREFIXLEN flag to VOP_LISTEXTATTR(9)

This approach avoid the need for converting the list back and forth, except
in libperfuse, since FUSE uses NUL-terminated strings, and the kernel may
have requested EXTATTR_LIST_PREFIXLEN.
 1.6  28-Jun-2011  manu Fix previous broken commit for extended attribute listing.
 1.5  27-Jun-2011  manu Implement extended attribute listing for UFS1.

Modify lsextattr(8) so that it does not expect each attribute name to be
prefixed by its length. This enable extattr_list_(file|link|fd) to
return a buffer matching its documentation. This also makes the interface
similar to what Linux and FUSE do, which is nice for interoperability.

Note that since we had no EA implementation supporting listing, we do
not break anything.
 1.4  24-May-2011  joerg Don't use user input as format string
 1.3  17-Jun-2006  elad branches: 1.3.26;
mark strpy safe
 1.2  02-Jun-2005  lukem branches: 1.2.2;
appease gcc -Wuninitialized
 1.1  02-Jan-2005  thorpej Add a getextattr(1)/setextattr(1)/rmextattr(1)/lsextattr(1) utility
that gets, sets, removes, and lists file system extended attributes.

From FreeBSD.
 1.2.2.1  19-Jun-2006  chap Sync with head.
 1.3.26.1  09-Aug-2011  riz Pull up following revision(s) (requested by manu in ticket #1651):
usr.bin/extattr/getextattr.1: revision 1.4
usr.bin/extattr/getextattr.c: revision 1.8
Improve extended attribute commands:
- allow namespace to be omitted when using a namespace-prefixed attribute
name, a la Linux.
- Improve hexdump for getextattr -x
- Add more display option for binary attributes, using vis(3)
- Add a -i option to setextattr to get the attribute value from file, so
that we can set binary values
 1.9.4.1  24-Jun-2012  jdc Pull up revision 1.10 (requested by manu in ticket #351).

Fix off-by-one in hexdump display (getextattr -x), which displayed a
trailing garbage byte.
 1.9.2.1  30-Oct-2012  yamt sync with head
 1.10.8.1  10-Aug-2014  tls Rebase.
 1.10.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.

RSS XML Feed