summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* VERSION: VERSION: v2.2.51 -> v2.2.52v2.2.52Brandon Philips2013-05-181-1/+1
|
* acl: respect DESTDIR when installingMike Frysinger2013-05-181-0/+2
| | | | | | | This makes the `make install DESTDIR=...` form work. It keeps support for all previous forms too (like DIST_ROOT). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* acl: Fix static build installationThomas Petazzoni2013-05-181-2/+1
| | | | | | | When doing a static build the .lai file is not created, so do not try to install it. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Rename build/ to package/Brandon Philips2013-05-189-5/+5
| | | | Keep build/ directory for out-of-source builds.
* test: getfacl-recursive: set umaskBrandon Philips2013-05-181-0/+1
| | | | umask 022 is expected on some of the tests. Set it.
* test: fixups on SELinux machinesBrandon Philips2013-05-183-7/+7
| | | | | ls adds a '.' at the end of the permission field list on SELinux machines, filter this out so tests work on SELinux machines.
* acl: use SHELL from configureMike Frysinger2013-05-182-1/+1
| | | | | | | | | | | | | | | | | 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 <vapier@gentoo.org>
* rename configure.acMike Frysinger2013-05-181-0/+0
| | | | | | | Newer autotools warn when using "configure.in" 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 <vapier@gentoo.org>
* 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-272-2/+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.
* VERSION: v2.2.50 -> v2.2.51v2.2.51Brandon Philips2011-04-191-1/+1
|
* test: Makefile remove directory prefix from malformed-restore-double-owner.aclBrandon Philips2011-04-191-1/+1
| | | | test/ isn't necessary as this is in test/Makefile
* test/misc.test: rm f from the top of the testBrandon Philips2011-04-191-0/+1
| | | | | f might exist before this test is ran. remove it first so the test always starts from the same state.
* VERSION: v2.2.49 -> v2.2.50v2.2.50Brandon Philips2011-04-151-1/+1
|
* libacl/Makefile: add __acl_extended_file.h to HFILESBrandon Philips2011-04-151-1/+1
|
* Minor fixes to the previous commitAndreas Gruenbacher2011-04-046-11/+16
| | | | | | | | | | * Assign the new libacl version ACL_1.2 to acl_extended_file_nofollow so that package managers will end up with the appropriate dependencies. * Add a manpage entry for acl_extended_file_nofollow which sources ("links to") the acl_extended_file manpage. * Remove the prototype for getxattr/lgetxattr. * Whitespace cleanups.
* libacl: Add acl_extended_file_nofollow()Kamil Dudka2011-04-049-19/+105
| | | | | | | This function calls lgetxattr() instead of getxattr(), which helps ls(1) to prevent unnecessary automatic mounts, which acl_extended_file() triggers. See the following bug report for more details: https://bugzilla.redhat.com/692982
* OPTIONS in man pages should be a section heading, not a subsection headingAndreas Gruenbacher2010-12-152-2/+2
|
* Fix a typo in the setfacl man pageAndreas Gruenbacher2010-12-061-1/+1
|
* setfacl: Clarify that removing a non-existent acl entry is not an errorAndreas Gruenbacher2010-12-051-2/+2
|
* Prevent setfacl --restore from SIGSEGV on malformed restore fileKamil Dudka2010-03-242-1/+7
| | | | | originally reported at: https://bugzilla.redhat.com/576550
* setfacl: make sure that -R only calls stat(2) on symlinks when it needs toM. Steinborn2010-01-222-3/+33
| | | | | | Fixes http://savannah.nongnu.org/bugs/?28131 Signed-off-by: Brandon Philips <bphilips@suse.de>
* improve AC_PATH_PROG usageMike Frysinger2010-01-111-39/+14
| | | | | | | | | 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 <vapier@gentoo.org> Signed-off-by: Brandon Philips <brandon@ifup.org>
* libacl: fix potential null pointer dereferenceBrandon Philips2009-12-171-4/+5
| | | | | | | | | | | | | stanse found that acl_copy_int() derefences ext_acl when initializing ent_p and then later checks if ext_acl is NULL. Delay initializing ent_p and size until the NULL check has been made on ext_acl. Fix this bug: https://bugzilla.novell.com/show_bug.cgi?id=564733 Signed-off-by: Brandon Philips <bphilips@suse.de>
* setfacl: fix restore crash on malformed inputMarkus Steinborn2009-12-174-2/+32
| | | | | | | | | | | | Malformed input to setfacl --restore can cause a crash due to a double free. Ensure that freed memory is set to NULL. Fixes this bug: https://savannah.nongnu.org/bugs/index.php?28185 Signed-off-by: Brandon Philips <bphilips@suse.de>
* setfacl: print useful error from read_acl_commentsBrandon Philips2009-12-172-5/+9
| | | | | | | | | | restore()'s fail path expects errno to contain the error but that is not the case with read_acl_comments(). Fix up the error path in restore() and have read_acl_comments() return EINVAL which makes more sense in this case. Signed-off-by: Brandon Philips <bphilips@suse.de>
* setfacl: changing owner and when S_ISUID should be set --restore fixBrandon Philips2009-12-172-1/+30
| | | | | | | | | | | | | | | | | | | | | Fix a problem in setfacl --restore when the owner or group is changed and the S_ISUID and S_ISGID are to be set. The root of the problem is that chown() can clear the S_ISUID and S_ISGID bits as described in chown(2): When the owner or group of an executable file are changed by a non- superuser, the S_ISUID and S_ISGID mode bits are cleared. POSIX does not specify whether this also should happen when root does the chown(); the Linux behavior depends on the kernel version. In case of a non- group-executable file (i.e., one for which the S_IXGRP bit is not set) the S_ISGID bit indicates mandatory locking, and is not cleared by a chown(). To fix the issue re-stat() the file after chown() so that the logic surrounding the chmod() has the updated mode of the file. Signed-off-by: Brandon Philips <bphilips@suse.de>
* VERSION: 2.2.48 -> 2.2.49v2.2.49Brandon Philips2009-11-192-1/+6
| | | | | | 2.2.49 release Signed-off-by: Brandon Philips <bphilips@suse.de>
* CHANGES: Update for 2.2.48 and cleanupBrandon Philips2009-11-191-100/+202
| | | | | | | | - Document changes for 2.2.48 - Remove entries for versions that were never publicly released by SGI - Cleanup file format Signed-off-by: Brandon Philips <bphilips@suse.de>
* Makefile: add missing files to LSRCFILESBrandon Philips2009-11-192-2/+2
| | | | | | | tests/sort-getfacl-output and examples/copyperm.c were missing from respective Makefiles Signed-off-by: Brandon Philips <bphilips@suse.de>
* VERSION: 2.2.47 -> 2.2.48v2.2.48Brandon Philips2009-07-311-1/+1
| | | | Preparing for 2.2.48 release.
* test/run: fix lt- prefix from libtool wrappersBrandon Philips2009-06-291-0/+2
| | | | | | | | | 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: http://lists.gnu.org/archive/html/libtool/2009-05/msg00042.html
* Document the new flags commentsAndreas Gruenbacher2009-06-232-16/+28
|
* Omit flags comments when POSIXLY_CORRECT is setAndreas Gruenbacher2009-06-231-1/+1
|
* Fix otherwise harmless syntax errors in the root and nfs testsAndreas Gruenbacher2009-06-231-2/+2
|
* Include the S_ISUID, S_ISGID, S_ISVTX flags in the getfacl output, and ↵Brandon Philips2009-06-238-29/+150
| | | | restore them with "setfacl --restore=file".
* Make sure that getfacl -R only calls stat(2) on symlinks when it needs toAndreas Gruenbacher2009-06-232-3/+7
| | | | | This fixes http://oss.sgi.com/bugzilla/show_bug.cgi?id=790 "getfacl follows symlinks, even without -L".
* Merge branch 'misc'Andreas Gruenbacher2009-06-232-5/+8
|\
| * Introduce new WALK_TREE_DEREFERENCE_TOPLEVEL flagAndreas Gruenbacher2009-06-232-5/+8
| | | | | | | | | | | | 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.)
* | Stop quoting nonprintable characters in the getfacl outputAndreas Gruenbacher2009-06-224-21/+25
| | | | | | | | | | | | What is printable or not depends on the locale settings, and getfacl often gets it wrong. We still need to quote a few special characters like newlines so that setfacl can always parse getfacl's output.
* | Merge branch 'misc'Andreas Gruenbacher2009-06-222-4/+4
|\ \ | |/
| * Add a parameter to quote() to specify which characters to quoteAndreas Gruenbacher2009-06-222-4/+4
| |
* | Merge branch 'misc'Andreas Gruenbacher2009-06-227-75/+64
|\ \ | |/
| * Put libmisc on its own branchAndreas Gruenbacher2009-06-228-0/+532
|
* Add homepage url and remove obsolete referencesAndreas Gruenbacher2009-06-191-8/+2
|
* Fix the path to include/install-shAndreas Gruenbacher2009-06-171-1/+1
|
* Fix in acl_equiv_mode: return the right mode even when the acl is not ↵Andreas Gruenbacher2009-06-082-3/+12
| | | | equivalent.
* Avoid unnecessary but destructive chown callsAndreas Gruenbacher2009-06-082-8/+20
| | | | | | | | When restoring acls and the file ownership from the output of getfacl with setfacl --restore, make sure to only chown(2) files when the owner or owning group does not match the current owner or owning group: otherwise, if the caller does not have the appropriate privilege, chown(2) will implicitly clear the suid and sgit flags.
* More license updatesAndreas Gruenbacher2009-06-0831-0/+445
| | | | | Add license headers to a number of small files which were only licenses as GPLv2+ implicitly so far.
* Clarify license noticeAndreas Gruenbacher2009-06-081-3/+4
| | | | | Refer to GPLv2+ specifically instead of only referring to GPL without version. (Acked by Felix Blyakher <felixb@sgi.com> on behalf of SGI on 8 April 2009.)