summaryrefslogtreecommitdiff
path: root/libmisc
Commit message (Collapse)AuthorAgeFilesLines
* getfacl: Add --one-file-system optionnextPavel Polacek2020-11-141-0/+10
| | | | | | | 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.)
* Move struct stat into struct walk_tree_argsAndreas Gruenbacher2020-11-141-14/+14
|
* Move list of open directories into struct walk_tree_argsAndreas Gruenbacher2020-11-141-30/+29
|
* Move walk_tree_rec arguments into a separate structAndreas Gruenbacher2020-11-141-32/+49
|
* Update my email addressAndreas Gruenbacher2020-02-062-2/+2
|
* Rework config.h usageYury Usishchev2016-02-155-0/+5
| | | | | | | | | 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.
* walk_tree_rec: Add parentheses to clarify codeAndreas Gruenbacher2015-12-261-2/+2
| | | | | | Make the conditional easier to read. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
* quote: escape literal backslashesJeff Mahoney2015-12-052-1/+6
| | | | | | | | | | | | | | | | | The octal unquote code can't handle escaping backslashes except by specifying the octal code for the backslash. That's not exactly a user-friendly interface for a scenario that may not be that uncommon. The unquote code isn't documented in the man page and can result in confusion when specifying names via a Windows domain that are entirely numeric (e.g. WINDOM\1234). This patch adds handling to allow literal escaping of the backslash (\\) as both input and output and documents the quoting rules in the setfacl man page. Also included are test cases for escaped backslashes followed by letters, escaped backslashes followed by numbers, and the original use case of escaped character literals. [Minor fixes by Andreas Gruenbacher.]
* walk_tree: mark internal variables as staticDmitry V. Levin2015-09-191-3/+3
| | | | walk_tree.c internal variables should not be exposed to libmisc users.
* add __acl_ prefixes to internal symbolsMike Frysinger2014-08-124-7/+7
| | | | | | 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.
* telldir return value and seekdir second parameters are of type longCristian Rodríguez2014-06-101-1/+1
| | | | not off_t .. since a pretty long time.
* modernize build systemMike Frysinger2014-01-132-31/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.)
* quote: pull in string.h for strchr prototypeMike Frysinger2013-04-301-0/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Brandon Philips <brandon@ifup.org>
* walk_tree: do not follow symlink to directory with -hAndreas Gruenbacher2011-05-271-1/+2
| | | | | | | Keep libmisc/walk_tree.c in sync with the version in the attr package; no change in functionality for getfacl or setfacl. Remove a related dead line of code from setfacl.
* Introduce new WALK_TREE_DEREFERENCE_TOPLEVEL flagAndreas Gruenbacher2009-06-231-1/+3
| | | | | | 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.)
* Add a parameter to quote() to specify which characters to quoteAndreas Gruenbacher2009-06-221-3/+3
|
* Put libmisc on its own branchAndreas Gruenbacher2009-06-226-0/+471