3 years agoUse stdint types consistently master origin/master
Felix Janda [Tue, 12 Jan 2016 21:20:33 +0000 (22:20 +0100)]
Use stdint types consistently

3 years agowalk_tree_rec: Add parentheses to clarify code
Andreas Gruenbacher [Sat, 26 Dec 2015 14:44:01 +0000 (15:44 +0100)]
walk_tree_rec: Add parentheses to clarify code

Make the conditional easier to read.

Signed-off-by: Andreas Gruenbacher <>
3 years agoReintroduce symbols that used to be syscall wrappers
Dmitry V. Levin [Tue, 15 Sep 2015 18:25:09 +0000 (21:25 +0300)]
Reintroduce symbols that used to be syscall wrappers

Commit 7921157890d07858d092f4003ca4c6bae9fd2c38 removed
symbols that were part of ABI.
Reintroduce these symbols to fix the ABI breakage.

These backward compatibility symbols just use appropriate
xattr syscall wrappers provided by libc.

3 years agoDo not export symbols that are not supposed to be exported
Dmitry V. Levin [Tue, 15 Sep 2015 16:42:01 +0000 (19:42 +0300)]
Do not export symbols that are not supposed to be exported

As all symbols that are part of public interface are explicitly exported
with corresponding versioning, mark all remaining symbols as local.

3 years agoAdd explicit symbol versioning for attr_copy_action
Dmitry V. Levin [Tue, 15 Sep 2015 16:41:20 +0000 (19:41 +0300)]
Add explicit symbol versioning for attr_copy_action

As all symbols that are part of public interface are expected
to be properly versioned, add versioning to attr_copy_action.

3 years agoignore configure.lineno
Mike Frysinger [Mon, 21 Sep 2015 21:06:40 +0000 (17:06 -0400)]
ignore configure.lineno

Newer autoconf sometimes generates this file.

3 years agowalk_tree: mark internal variables as static
Dmitry V. Levin [Tue, 15 Sep 2015 20:03:08 +0000 (23:03 +0300)]
walk_tree: mark internal variables as static

walk_tree.c internal variables should not be exposed to libmisc users.

4 years agoRemove the attr.5 man page (moved to man-pages)
Andreas Gruenbacher [Wed, 22 Apr 2015 09:46:59 +0000 (11:46 +0200)]
Remove the attr.5 man page (moved to man-pages)

The attr.5 page is part of the extended attribute system call documentation,
which has been moved into the man-pages package. Move the attr.5 page there
as well.

4 years agoRemove <attr/xattr.h> and the syscall wrappers
Andreas Gruenbacher [Tue, 14 Apr 2015 23:33:58 +0000 (01:33 +0200)]
Remove <attr/xattr.h> and the syscall wrappers

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.

4 years agoRemove the section 2 man pages
Andreas Gruenbacher [Tue, 14 Apr 2015 21:53:11 +0000 (23:53 +0200)]
Remove the section 2 man pages

The section 2 man pages have long since been added to the man-pages package
which documents all system calls; they were disabled in attr by default since
January 2014.  Get rid of them here.

4 years agoRemove outdated tests from test/attr.test
Andreas Gruenbacher [Tue, 3 Mar 2015 17:15:07 +0000 (18:15 +0100)]
Remove outdated tests from test/attr.test

Extended attributes are not accounted for in the real file size on most file
systems, not even in ext* file systems with large inodes.  Remove the
associated tests.

4 years agoRemove test/ext/fs.test
Andreas Gruenbacher [Tue, 3 Mar 2015 17:13:12 +0000 (18:13 +0100)]
Remove test/ext/fs.test

These tests don't do anything useful anymore on most ext4 file systemms, so
remove it.

4 years agoAdd setfattr --raw option
Andreas Gruenbacher [Fri, 20 Feb 2015 21:48:26 +0000 (22:48 +0100)]
Add setfattr --raw option

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

4 years agoProperly set and report empty attribute values
Andreas Gruenbacher [Fri, 20 Feb 2015 21:42:19 +0000 (22:42 +0100)]
Properly set and report empty attribute 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.

4 years agoMan pages: Minor fixes
Andreas Gruenbacher [Fri, 20 Feb 2015 20:37:33 +0000 (21:37 +0100)]
Man pages: Minor fixes

Two small wording fixes.

4 years agobuild: unbreak attr_copy_fd() and attr_copy_file().
Nick Alcock [Fri, 3 Oct 2014 12:54:09 +0000 (13:54 +0100)]
build: unbreak attr_copy_fd() and attr_copy_file().

Mike's build-system-revamping commit 9ce21bd of January this year
accidentally dropped a crucial -include of "libattr.h". This silently
undefined the HAVE_F*ATTR macros, causing attr_copy_{fd,file}.c to think
that xattrs are not supported and to compile the functions in those
files into a 'return 0;' stub.

The code in these files uses the NLS _() macro, which was recently moved
into misc.h, which can only sensibly be included by things outside
libattr. So migrate the NLS macros into a new nls.h at the same time,
and include it from misc.h.

With these fixes in place, xattrs can be copied again.

4 years agoattr: Don't report a NULL attribute name when -l (list) fails
Andreas Gruenbacher [Mon, 7 Jul 2014 22:30:20 +0000 (00:30 +0200)]
attr: Don't report a NULL attribute name when -l (list) fails

4 years agoattr_list / attr_listf: Fix cursor off-by-one error
Andreas Gruenbacher [Mon, 7 Jul 2014 22:15:19 +0000 (00:15 +0200)]
attr_list / attr_listf: Fix cursor off-by-one error

When an attribute cannot be added to the buffer in attr_list() or attr_listf(),
we need to retry adding the same attribute on the next attempt, except when we
didn't make progress.

Reported-by: Luiz Angelo Daros de Luca <>
4 years agoPortability fix: <alloca.h> is Linux specific
Emmanuel Dreyfus [Mon, 30 Jun 2014 13:07:47 +0000 (15:07 +0200)]
Portability fix: <alloca.h> is Linux specific

4 years agoPortability fixes
Emmanuel Dreyfus [Mon, 30 Jun 2014 13:06:05 +0000 (15:06 +0200)]
Portability fixes

- <features.h>  is Linux specific
- Define __THROW for non glibc based systems

5 years agotelldir return value and seekdir second parameters are of type long
Cristian Rodríguez [Tue, 10 Jun 2014 18:34:50 +0000 (14:34 -0400)]
telldir return value and seekdir second parameters are of type long

not off_t .. since a pretty long time.

5 years agoLicense fixes
Andreas Gruenbacher [Tue, 4 Mar 2014 16:54:23 +0000 (17:54 +0100)]
License fixes

The libattr library is supposed to be LGPLv2.1+ licensed, but some of the files
were accidentally labeled as GPLv2+ licensed.  Fix this and clarify some more
license headers that mix LGPLv2.1 and GPLv2.

5 years agotest: fix cleanup & running as root
Mike Frysinger [Fri, 10 Jan 2014 15:07:34 +0000 (10:07 -0500)]
test: fix cleanup & running as root

This fixes a bug when doing the cleanup of tests in a subdir by making
sure we chdir back to our starting point.

We also move the root test out of XFAIL and instead do the root checking
at runtime.  If we are root, the test passes nicely, otherwise it marks
itself as SKIP quickly.

These are fixing issues noticed when doing the update to libacl.

5 years agoinclude examples/ in dist tarball
Mike Frysinger [Fri, 10 Jan 2014 15:07:33 +0000 (10:07 -0500)]
include examples/ in dist tarball

We don't want to build this, but we do want to include it in the
release, so add it to EXTRA_DIST.

5 years agobuild: ship a pkgconfig file for libattr
Jan Engelhardt [Fri, 10 Jan 2014 14:47:23 +0000 (15:47 +0100)]
build: ship a pkgconfig file for libattr

5 years agobuild: make use of an aux-dir to stow away helper scripts
Jan Engelhardt [Fri, 10 Jan 2014 14:47:22 +0000 (15:47 +0100)]
build: make use of an aux-dir to stow away helper scripts

Acked-by: Mike Frysinger <>
5 years agoavoid glibc-specific DECLS defines
Mike Frysinger [Fri, 10 Jan 2014 13:56:37 +0000 (08:56 -0500)]
avoid glibc-specific DECLS defines

This matches what we do in all the other headers.

5 years agobuild: drop attrincludedir, use pkgincludedir
Jan Engelhardt [Fri, 10 Jan 2014 07:03:59 +0000 (08:03 +0100)]
build: drop attrincludedir, use pkgincludedir

Automake already provides a variable for
${includedir}/${PACKAGE_NAME}; use it.

Acked-by: Mike Frysinger <>
5 years agodisable installation of man(2) pages by default
Mike Frysinger [Thu, 9 Jan 2014 21:30:19 +0000 (16:30 -0500)]
disable installation of man(2) pages by default

Normally the Linux man-pags project maintains pages for all Linux
system calls, and they've long ago added pages for these.  That
means distros trying to install both hit collisions.

Add a flag so people can still enable them if they want, but default
to off since the man-pages project covers things.

5 years agopo: regenerate files after move
Mike Frysinger [Thu, 9 Jan 2014 21:30:18 +0000 (16:30 -0500)]
po: regenerate files after move

5 years agomodernize build system
Mike Frysinger [Thu, 9 Jan 2014 21:30:17 +0000 (16:30 -0500)]
modernize build system

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

This should also be faster by virtue of using a non-recursive build.

Things to note:
 - to generate autotools:
 - 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.)

5 years agotest: make running parallel/out-of-tree safe
Mike Frysinger [Thu, 9 Jan 2014 21:30:16 +0000 (16:30 -0500)]
test: make running parallel/out-of-tree safe

Change the run program to update PATH to find the tools locally
automatically.  This lets us avoid having to always build in the
tree and allows for direct running.

Also update the program to create a tempdir for each test to run
inside of.  This way we can run all the tests in parallel without
randomly clobbering each other.

5 years agomove gettext logic into misc.h
Mike Frysinger [Thu, 9 Jan 2014 21:30:15 +0000 (16:30 -0500)]
move gettext logic into misc.h

This lets us autogenerate config.h using autoheader rather than
hand maintain it.

5 years agopunt debian/rpm packaging logic
Mike Frysinger [Thu, 9 Jan 2014 21:30:14 +0000 (16:30 -0500)]
punt debian/rpm packaging logic

These files haven't been updated in years.  The respective upstreams
do their own thing now.  Punt this code to make future cleanups easier.

Signed-off-by: Mike Frysinger <>

5 years agoSuppress deprecation warnings when building attr and libattr
Andreas Gruenbacher [Thu, 9 Jan 2014 18:09:00 +0000 (19:09 +0100)]
Suppress deprecation warnings when building attr and libattr

5 years agoAdd a default /etc/xattr.conf file
Andreas Gruenbacher [Mon, 18 Nov 2013 21:11:44 +0000 (22:11 +0100)]
Add a default /etc/xattr.conf file

5 years agoMark the Irix compatibility functions as deprecated
Andreas Gruenbacher [Tue, 22 Oct 2013 19:33:05 +0000 (21:33 +0200)]
Mark the Irix compatibility functions as deprecated

5 years agoMake attr_get and attr_getf behave as described in the man page
Andreas Gruenbacher [Tue, 22 Oct 2013 16:59:58 +0000 (18:59 +0200)]
Make attr_get and attr_getf behave as described in the man page

This addresses bug

5 years agoUse autoreconf rather than autoconf to regenerate the files.
Fabrice Bauzac [Mon, 5 Aug 2013 13:23:17 +0000 (15:23 +0200)]
Use autoreconf rather than autoconf to regenerate the files.

5 years ago.gitignore: ignore *~ and
Fabrice Bauzac [Mon, 5 Aug 2013 13:22:40 +0000 (15:22 +0200)]
.gitignore: ignore *~ and

6 years agoFix ATTR_OP_REMOVE operation in attr_multi()
Andreas Gruenbacher [Mon, 6 Aug 2012 11:31:20 +0000 (13:31 +0200)]
Fix ATTR_OP_REMOVE operation in attr_multi()

The ATTR_OP_GET, ATTR_OP_SET, and ATTR_OP_REMOVE constants are not single bit
values, so use comparisons instead of bit tests to check which of those
operations to perform.  (Up to now, ATTR_OP_REMOVE was wrongly detected as

6 years agoMakefile: rename to
Mike Frysinger [Mon, 20 May 2013 18:26:32 +0000 (14:26 -0400)]
Makefile: rename to

The Makefile references the configure source file by name, so update
that after the rename.

Signed-off-by: Mike Frysinger <>
6 years agoVERSION: 2.4.46 -> 2.4.47
Brandon Philips [Sun, 19 May 2013 05:47:24 +0000 (22:47 -0700)]
VERSION: 2.4.46 -> 2.4.47

6 years agoattr: respect DESTDIR when installing
Mike Frysinger [Sat, 27 Oct 2012 06:24:39 +0000 (02:24 -0400)]
attr: respect DESTDIR when installing

This makes the `make install DESTDIR=...` form work.  It keeps support
for all previous forms too (like DIST_ROOT).

Signed-off-by: Mike Frysinger <>
6 years agoattr: Fix static build installation
Thomas Petazzoni [Sat, 17 Nov 2012 18:37:59 +0000 (19:37 +0100)]
attr: Fix static build installation

When doing a static build the .lai file is not created, so do not try
to install it.

Signed-off-by: Thomas Petazzoni <>
6 years agopackage: cleanup whitespace errors
Brandon Philips [Sun, 19 May 2013 04:43:56 +0000 (21:43 -0700)]
package: cleanup whitespace errors

trailing whitespace on some lines, delete!

6 years agoRename build/ to package/
Kamil Rytarowski [Sat, 18 May 2013 12:03:16 +0000 (14:03 +0200)]
Rename build/ to package/

Keep build/ directory for out-of-source builds.

6 years agoAdd missing includes against libgen.h
Kamil Rytarowski [Sat, 18 May 2013 11:20:35 +0000 (13:20 +0200)]
Add missing includes against libgen.h

The function char *basename(char *path) is defined in libgen.h.

6 years agoattr: use SHELL from configure
Mike Frysinger [Tue, 7 May 2013 14:04:13 +0000 (10:04 -0400)]
attr: use SHELL from configure

If /bin/sh is not a functional enough shell, configure will select a
SHELL of /bin/bash or better.  But the current build helpers always
hardcode /bin/sh, so if libtool itself configures itself for /bin/bash,
things will fail when it attempts to do:
SHELL = /bin/sh
LIBTOOL = $(SHELL) .../libtool
eval: 1: base_compile+= -pipe: not found

So rather than hardcoding SHELL to /bin/sh, set it to @SHELL@ and let
configure find a good value for us.

Signed-off-by: Mike Frysinger <>
6 years agorename
Mike Frysinger [Tue, 7 May 2013 14:07:05 +0000 (10:07 -0400)]

Newer autotools warn when using "" as that is the old name,
and there are plans to make this fatal in the future.  So rename it.

Signed-off-by: Mike Frysinger <>
6 years agolibattr: syscalls: use syscalls.h
Riku Voipio [Wed, 20 Mar 2013 14:51:18 +0000 (07:51 -0700)]
libattr: syscalls: use syscalls.h

Include syscalls.h and check for __NR_setxattr being set. This fixes the
build on new and odd archs but may break on really really old machines
with out of date syscalls.h.

6 years agotest: fix on selinux systems
Brandon Philips [Tue, 30 Apr 2013 14:32:53 +0000 (07:32 -0700)]
test: fix on selinux systems

additional 'security.selinux' attrs appear on selinux systems, filter
them out to get the tests to pass.

6 years agoInstall the libraries to the appropriate directory
Kamil Rytarowski [Sat, 27 Apr 2013 20:43:31 +0000 (22:43 +0200)]
Install the libraries to the appropriate directory

6 years agoInstall the missing COPYING.LGPL file
Kamil Rytarowski [Sat, 27 Apr 2013 20:39:31 +0000 (22:39 +0200)]
Install the missing COPYING.LGPL file

7 years agoClarify what the --only-values flag does
Andreas Gruenbacher [Sun, 11 Dec 2011 14:45:08 +0000 (15:45 +0100)]
Clarify what the --only-values flag does

8 years agofix typos in attr.1 man page
Kamil Dudka [Thu, 13 Jan 2011 11:08:32 +0000 (12:08 +0100)]
fix typos in attr.1 man page

Contributed by John Bradshaw.

8 years agogetfattr: return non-zero exit code on failure
Kamil Dudka [Wed, 22 Dec 2010 13:13:27 +0000 (14:13 +0100)]
getfattr: return non-zero exit code on failure

reported by Jean-Pierre André at

8 years agowalk_tree: do not follow symlink to directory with -h
Kamil Dudka [Wed, 22 Dec 2010 14:03:48 +0000 (15:03 +0100)]
walk_tree: do not follow symlink to directory with -h

reported by Jean-Pierre André at

8 years agoVERSION: 2.4.45 -> 2.4.46
Brandon Philips [Tue, 19 Apr 2011 17:55:14 +0000 (10:55 -0700)]
VERSION: 2.4.45 -> 2.4.46

8 years agotest: fix root tests with sorting
Brandon Philips [Tue, 19 Apr 2011 17:51:24 +0000 (10:51 -0700)]
test: fix root tests with sorting

The root tests were not piped through the sorting program. Fix this.

8 years agotest: Add sort-getfattr-output to source files
Brandon Philips [Tue, 19 Apr 2011 17:04:11 +0000 (10:04 -0700)]
test: Add sort-getfattr-output to source files

test/sort-getfattr-output was missing from the tarball. Add it.

8 years agoVERSION: 2.4.44 -> 2.4.45
Brandon Philips [Fri, 15 Apr 2011 23:05:44 +0000 (16:05 -0700)]
VERSION: 2.4.44 -> 2.4.45

8 years agoOPTIONS in man pages should be a section heading, not a subsection heading
Andreas Gruenbacher [Tue, 23 Nov 2010 15:44:55 +0000 (16:44 +0100)]
OPTIONS in man pages should be a section heading, not a subsection heading

8 years agogetfattr: encode NULs properly with --encoding=text
Kamil Dudka [Mon, 8 Nov 2010 15:17:02 +0000 (10:17 -0500)]
getfattr: encode NULs properly with --encoding=text

reported by Paul Bolle at

8 years agosetfattr.1: document supported encodings of values
Kamil Dudka [Fri, 19 Nov 2010 11:40:11 +0000 (12:40 +0100)]
setfattr.1: document supported encodings of values

reported by Tomasz Kepczynski at

8 years agoMerge branch 'master' of ssh://
Andreas Gruenbacher [Tue, 23 Nov 2010 15:26:29 +0000 (16:26 +0100)]
Merge branch 'master' of ssh://

8 years agoUgly hack to convert the man pages into html
Andreas Gruenbacher [Mon, 28 Jun 2010 17:30:01 +0000 (19:30 +0200)]
Ugly hack to convert the man pages into html

9 years agosetfattr.c: fix thinko in restore()
Kamil Dudka [Thu, 3 Jun 2010 13:30:19 +0000 (15:30 +0200)]
setfattr.c: fix thinko in restore()

9 years agoattr_parse_attr_conf: eliminate a double free
Kamil Dudka [Thu, 3 Jun 2010 13:29:54 +0000 (15:29 +0200)]
attr_parse_attr_conf: eliminate a double free

9 years agoattr_parse_attr_conf: eliminate a memory leak
Kamil Dudka [Thu, 3 Jun 2010 13:23:04 +0000 (15:23 +0200)]
attr_parse_attr_conf: eliminate a memory leak

9 years agoimprove AC_PATH_PROG usage
Mike Frysinger [Sat, 9 Jan 2010 03:03:36 +0000 (22:03 -0500)]
improve AC_PATH_PROG usage

Use AC_PATH_PROG unconditionally and append the search PATH instead of
forcing lookup in a few dirs.  This way we can find the binaries on more
systems where things don't live in the expected locations.

Signed-off-by: Mike Frysinger <>
Signed-off-by: Brandon Philips <>
9 years agoMerge branch 'misc'
Brandon Philips [Fri, 22 Jan 2010 22:55:20 +0000 (14:55 -0800)]
Merge branch 'misc'

9 years agoquote: pull in string.h for strchr prototype
Mike Frysinger [Sat, 9 Jan 2010 02:53:19 +0000 (21:53 -0500)]
quote: pull in string.h for strchr prototype

Signed-off-by: Mike Frysinger <>
Signed-off-by: Brandon Philips <>
9 years agolibattr: fix memory leak in attr_copy_action()
Brandon Philips [Fri, 18 Dec 2009 01:15:57 +0000 (17:15 -0800)]
libattr: fix memory leak in attr_copy_action()

stanse found that attr_copy_action returns before freeing the memory
allocated for text.

Move fopen() above the malloc so this is not a problem.

Fixes this bug:

Signed-off-by: Brandon Philips <>
9 years agoVERSION: 2.4.43 -> 2.4.44
Brandon Philips [Fri, 31 Jul 2009 09:10:18 +0000 (02:10 -0700)]
VERSION: 2.4.43 -> 2.4.44

9 years agoattr.test: fix tests after "Stop quoting nonprintable characters in the getfattr...
Andreas Gruenbacher [Fri, 31 Jul 2009 08:59:16 +0000 (01:59 -0700)]
attr.test: fix tests after "Stop quoting nonprintable characters in the getfattr output"

after 6824f9c68225388c8c7a9e887a21f0aa222c3571 getfattr outputs \ooo style
characters in fewer cases. Fix the test case to match.

10 years agoIntroduce new WALK_TREE_DEREFERENCE_TOPLEVEL flag
Andreas Gruenbacher [Mon, 22 Jun 2009 22:17:49 +0000 (00:17 +0200)]

This flag indicates to dereference top-level symlinks. (If non
top-level symlinks should be stat()ed as well, the
WALK_TREE_DEREFERENCE flag must be specified.)

10 years agoStop quoting nonprintable characters in the getfattr output
Andreas Gruenbacher [Mon, 22 Jun 2009 19:15:42 +0000 (21:15 +0200)]
Stop quoting nonprintable characters in the getfattr output

What is printable or not depends on the locale settings, and getfattr
often gets it wrong. We still need to quote a few special characters
like newlines, and "=" in attribute names, so that setfattr can always
parse getfattr's output.

10 years agoMerge branch 'misc'
Andreas Gruenbacher [Mon, 22 Jun 2009 19:23:52 +0000 (21:23 +0200)]
Merge branch 'misc'

10 years agoMerge branch 'misc'
Andreas Gruenbacher [Mon, 22 Jun 2009 19:23:33 +0000 (21:23 +0200)]
Merge branch 'misc'

10 years agoAdd a parameter to quote() to specify which characters to quote
Andreas Gruenbacher [Mon, 22 Jun 2009 18:03:16 +0000 (20:03 +0200)]
Add a parameter to quote() to specify which characters to quote

10 years agoPut libmisc on its own branch
Andreas Gruenbacher [Mon, 22 Jun 2009 17:07:20 +0000 (19:07 +0200)]
Put libmisc on its own branch

10 years agotest/run: fix lt- prefix from libtool wrappers
Brandon Philips [Mon, 22 Jun 2009 18:28:47 +0000 (11:28 -0700)]
test/run: fix lt- prefix from libtool wrappers

On some platforms libtool prefixes the in-tree binaries under .libs with
"lt-".  This causes the tests to break. This patch removes the lt-
prefix from program error output.

A discussion on the issue is here:

10 years agoBuild fix for GNU/kFreeBSD
Petr Salinger [Fri, 5 Jun 2009 18:45:33 +0000 (18:45 +0000)]
Build fix for GNU/kFreeBSD

On Linux, ENOATTR aliases to ENODATA.  On other operating systems like
Irix and BSD*, ENOATTR is a separate error number.

10 years agoAdd homepage url and remove obsolete references
Andreas Gruenbacher [Fri, 19 Jun 2009 14:35:07 +0000 (16:35 +0200)]
Add homepage url and remove obsolete references

10 years agoFix the path to include/install-sh
Andreas Gruenbacher [Wed, 17 Jun 2009 12:21:46 +0000 (14:21 +0200)]
Fix the path to include/install-sh

10 years agoMore license updates
Andreas Gruenbacher [Tue, 12 May 2009 08:55:30 +0000 (10:55 +0200)]
More license updates

Clarify some license notices to specifically refer to GPLv2+ instead of only
referring to GPL without version. (Most of the sloppy license headers slipped
in unnoticed; the changes were acked by Felix Blyakher <> on
behalf of SGI on 8 April 2009.)

Add license headers to a number of small files which were only licenses as
GPLv2+ implicitly so far.

Refer to this package as "this program" rather than "Attr" throughout the
license notices; this simplifies sharing files among packages.

10 years agoLibtool compatibility fix for version 1
Andreas Gruenbacher [Mon, 16 Mar 2009 09:27:51 +0000 (10:27 +0100)]
Libtool compatibility fix for version 1

Recent versions of libtool require the -i option for copying auxiliary
files (config.sub, config.guess, install-sh,, while older
versions will copy those files anyway, and don't understand -i.

10 years agoFix wrong license notices
Andreas Gruenbacher [Wed, 11 Mar 2009 15:28:13 +0000 (16:28 +0100)]
Fix wrong license notices

Some of the license notices added in commit f36cdfd are wrongly referring
to GPLv2.1. This is wrong; the proper licenses that the notices should refer
to are GPLv2, and LGPLv2.1. Fix this mistake.

Signed-off-by: Andreas Gruenbacher <>
10 years agoSplit doc/{COPYING => COPYING, COPYING.LGPL}
Andreas Gruenbacher [Wed, 11 Mar 2009 14:40:54 +0000 (15:40 +0100)]

Split into separate files for the GPL and LGPL to make things slightly
more obvious.  Also updates the surface mail address according to the
FSF's latest template, and fixes a left-over reference to the ``GNU Library
General Public License'', which is now known as the ``GNU Lesser General
Public License''.

10 years agoAdd copyright and license notices to lots of files
Andreas Gruenbacher [Tue, 10 Mar 2009 20:20:46 +0000 (21:20 +0100)]
Add copyright and license notices to lots of files

Signed-off-by: Andreas Gruenbacher <>
10 years agoFix encoding and add copyright and license notice
Andreas Gruenbacher [Tue, 10 Mar 2009 20:20:13 +0000 (21:20 +0100)]
Fix encoding and add copyright and license notice

10 years agoMore libtoolize fixes
Andreas Gruenbacher [Tue, 10 Mar 2009 16:00:35 +0000 (17:00 +0100)]
More libtoolize fixes

Recent versions of libtool behave slightly differently, which causes some
breakage in how libtoolize was used here.  Make sure that libtoolize adds
the auxiliary files (config.guess and config.sub).

Move install-sh into include/ so that libtoolize does not destroy it.

Split up the ``make clean'' and ``make distclean'' targets: the former
removes all files generated during a build.  The latter removes all
files generated by libtoolize, autoconf, and configure as well.

Signed-off-by: Andreas Gruenbacher <>
10 years agoWhitespace cleanups
Andreas Gruenbacher [Tue, 10 Mar 2009 15:55:16 +0000 (16:55 +0100)]
Whitespace cleanups

10 years agoAdd more generated files to .gitignore, and sort the file
Andreas Gruenbacher [Tue, 10 Mar 2009 15:53:52 +0000 (16:53 +0100)]
Add more generated files to .gitignore, and sort the file

10 years agoRemove redundant AC_PROG_LIBTOOL invocation
Andreas Gruenbacher [Sun, 8 Mar 2009 13:07:29 +0000 (14:07 +0100)]
Remove redundant AC_PROG_LIBTOOL invocation

10 years agoAutomake and libtool fixes
Andreas Gruenbacher [Fri, 27 Feb 2009 14:56:00 +0000 (15:56 +0100)]
Automake and libtool fixes

Remove aclocal.m4 from the repository and generate it when needed.
Add the AC_PROG_LIBTOOL autoconf macro and use libtoolize according to
the libtool info pages.

Signed-off-by: Andreas Gruenbacher <>
10 years agoDefine ENABLE_GETTEXT with --enable-gettext
Andreas Gruenbacher [Fri, 27 Feb 2009 11:49:26 +0000 (12:49 +0100)]
Define ENABLE_GETTEXT with --enable-gettext

When --enable-gettext is specified, make sure that ENABLE_GETTEXT gets
defined in config.h.

Signed-off-by: Andreas Gruenbacher <>
10 years agoMake sure we respect LINGUAS #205948 by Arvid Norlander
Andreas Gruenbacher [Thu, 26 Feb 2009 00:16:47 +0000 (01:16 +0100)]
Make sure we respect LINGUAS #205948 by Arvid Norlander

Patch from Gentoo via Mike Frysinger <>.

Signed-off-by: Andreas Gruenbacher <>
10 years agoAdd a small script for sorting the getfattr output
Andreas Gruenbacher [Mon, 23 Feb 2009 02:15:50 +0000 (03:15 +0100)]
Add a small script for sorting the getfattr output

Instead of using grep and sort, use a small perl script for sorting
the getfattr output. That way, the test remains more obvious.

This reverts commit aeaf2d577c10f42dbc21e8d7370ee9cf37e5667e.