summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* getfattr: Add --one-file-system optionAndreas Gruenbacher2021-03-111-0/+6
| | | | | Add a --one-filesystem option to getfattr. With this option, getfattr will not cross mount points, similar to "tar --one-file-system".
* Update my email addressAndreas Gruenbacher2020-02-062-2/+2
|
* attr: Replace bzero with memsetRosen Penev2019-08-121-1/+1
| | | | | | | bzero is a deprecated function that is optionally unavailable with uClibc-ng. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* getfattr: don't count terminating NULL in well_enough_printableJeff Layton2019-06-131-0/+4
| | | | | | | | | | If the value is a string with the terminating NUL included in the length, then don't count that terminating NUL when determining whether the string is printable. This is consistent with the fact that getfattr doesn't print the terminating NUL character in --encoding=text (commit 7fed4441e12d). Signed-off-by: Jeff Layton <jlayton@kernel.org>
* attr: Fix segmentation faultv2.4.48Andreas Gruenbacher2017-09-151-0/+4
| | | | | | | | | | | When the -V option is used without -s, attr will cause a segmentation fault instead of reporting an error: $ touch somefile $ attr -V whatever somefile Segmentation fault (core dumped) https://savannah.nongnu.org/bugs/?48244
* setfacl: Include errno.hAndreas Gruenbacher2016-12-111-1/+1
| | | | | | In file tools/setfattr.c:33:0, gcc -Wcpp complains that including <sys/errno.h> is incorrect and that <errno.h> should be included instead. Reported by Matias A. Fonzo <selk@dragora.org>.
* Cleanup config.h usageYury Usishchev2016-03-022-2/+4
| | | | Add config.h include to every source file before all other includes.
* Remove <attr/xattr.h> and the syscall wrappersAndreas Gruenbacher2015-04-152-2/+3
| | | | | | The xattr syscalls are provided by glibc since ages, so there is no need to use the indirect system call "syscall" anymore. This removes the need for the <attr/xattr.h> header; use <sys/xattr.h> instead.
* Add setfattr --raw optionAndreas Gruenbacher2015-02-201-1/+9
| | | | | | With this option, attribute values are taken as they are, without traing to decode them. This can be thought of as the counterpart to "getfattr --only-values".
* Properly set and report empty attribute valuesAndreas Gruenbacher2015-02-202-1/+3
| | | | | | | Change getfattr to print empty attribute values as "" (including the quotes), 0x, or 0s, depending on the encoding chosen. Fix setfattr to set empty attribute values when the value specified is an empty string; before, an encoded empty value like "" (including the quotes) had to be specified.
* attr: Don't report a NULL attribute name when -l (list) failsAndreas Gruenbacher2014-07-081-2/+2
|
* modernize build systemMike Frysinger2014-01-094-0/+1237
This deletes the hand rolled build system and replaces it entirely with autotools. The overall diffstat shows that this is a clear win, and it makes the package build/install like every other autotool package out there which makes the lives of distro maintainers a lot easier. This should also be faster by virtue of using a non-recursive build. Things to note: - to generate autotools: ./autogen.sh - to see full compile output: make V=1 - to build specific targets: make attr getfattr ... - to run tests: make check - to create a release: make distcheck -j Other non-developer things: - the xattr.conf file is now installed into sysconfdir by default - man pages are no longer compressed as this is uncommon in the autotools world and distros don't need it anyways (they already handle it automatically for most pakages) - the minor # of the shared library is now based on the package version so it'll be much bigger ... this isn't a problem, and is actually a bugfix (older releases didn't change when they should have) (Again, this is all using the standard autotool targets.)