| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Add a --one-filesystem option to getfattr. With this option, getfattr
will not cross mount points, similar to "tar --one-file-system".
|
| |
|
|
|
|
|
|
|
| |
bzero is a deprecated function that is optionally unavailable with
uClibc-ng.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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>.
|
|
|
|
| |
Add config.h include to every source file before all other includes.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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".
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
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.)
|