summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools: mark long_options static & constMike Frysinger2022-12-102-2/+2
| | | | This is read-only data, so don't include it in the read/write page.
* Add $(LTLIBINTL) to libacl_LIBADD tools_ldaddArsen Arsenović2022-11-161-1/+1
| | | | | | On some platforms, libc does not provide gettext, and hence, more work is necessary to get gettext to link. AM_GNU_GETTEXT covers for this case and emits a $(LTLIBINTL) that we can use on those platforms.
* Remove PATH_MAX usage which does not exist on GNU/HurdGuillem Jover2022-11-121-5/+0
| | | | | | The Hurd is intended to have no hardcoded limits, and POSIX makes it possible for a system to not define PATH_MAX. Switch to the simpler solution which is to generate the constants at compile time.
* Fix typosSamanta Navarro2022-11-121-1/+1
| | | | Typos found with codespell.
* chacl: Use portable version of dirent and readdirKhem Raj2022-11-121-2/+2
| | | | | | | Using 64bit versions on 32bit architectures should be enabled with --enable-largefile, this makes it portable across musl and glibc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* getfacl: fix indent in --help outputValentin Vidic2021-03-021-1/+1
| | | | | | --access has a different indent than the rest of the options. Signed-off-by: Valentin Vidic <vvidic@valentin-vidic.from.hr>
* getfacl: Add --one-file-system optionnextPavel Polacek2020-11-141-0/+6
| | | | | | | Add a --one-filesystem option to getfacl. With this option, getfacl will not cross mount points, similar to "tar --one-file-system". (Patch modified by Andreas Gruenbacher.)
* Update my email addressAndreas Gruenbacher2020-02-066-6/+6
|
* setfacl --restore: Silence valgrindAndreas Gruenbacher2017-03-171-1/+8
| | | | | | | | Valgrind complains that setfacl --restore triggers uninitialized memory accesses to cmd->c_tag and cmd->c_perm of CMD_REMOVE_ACL commands in do_set (http://savannah.nongnu.org/bugs/?50566). In this case, the uninitialized memory accesses have no effect. Silence valgrind by initializing cmd->c_tag and cmd->c_perm anyway.
* setfacl: Preserve special mode bits on filesystems without POSIX ACL supportAndreas Gruenbacher2016-08-231-2/+9
| | | | | | | | | When the ACL to be set is equivalent to a file mode, on filesystems without POSIX ACL support, setfacl falls back to chmod(1) for setting the file mode to the equivalent of the ACL. Unfortunately it did not preserve the set-user-ID, set-group-ID, and sticky bits in that case; fix that.
* setfacl: Allow more than four characters in the perms fieldAndreas Gruenbacher2016-05-191-3/+1
| | | | Allow setfacl commands like "setfacl -m u::rwx- file" to succeed.
* Rework config.h usageYury Usishchev2016-02-153-0/+3
| | | | | | | | | Move #include "config.h" from misc.h to every source file. It's incorrect to include it after a system header file because it does things like: Those must come before you include any system header file in order for them to work properly. It hasn't bitten us so far, but we still should fix the files to do the right thing.
* getfacl: Fix minor resource leakAndreas Gruenbacher2015-09-081-11/+20
| | | | | | The return value of of acl_get_qualifier needs to be acl_freed. Reported by Jaska Uimonen <jaska.uimonen@helsinki.fi>.
* getfacl: Fix memory leakAndreas Gruenbacher2015-07-161-1/+1
| | | | | | Reported by Andreas Stieger <astieger@suse.com> (https://bugzilla.suse.com/show_bug.cgi?id=929108): Fix a memory leak in getfacl (allocated acl not being freed).
* add __acl_ prefixes to internal symbolsMike Frysinger2014-08-123-11/+11
| | | | | | When static linking libacl, people sometimes run into symbol collisions because their own code defines symbols like "quote". So for acl internal symbols, use an __acl_ prefix.
* read_acl_{comments,seq}: switch to next_lineMike Frysinger2014-01-191-13/+10
| | | | | | | Rather than use a fixed length buffer, use next_line. This let's us handle any arbitrary length and avoid the non-portable PATH_MAX. Fixes bug 27388 in the acl tracker.
* read_acl_{comments,seq}: rename "line" to "lineno"Mike Frysinger2014-01-193-14/+14
| | | | | | The word "line" is used to refer to the content of a line, and a few places are already using "lineno". Change all to "lineno" so that we can use "line" consistently.
* modernize build systemMike Frysinger2014-01-1312-0/+3403
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: - 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.)