Marcus Meissner
5439477a49
- Update to git snapshot dated 21 Sep 2015. - Added: * 0001-Install-the-libraries-to-the-appropriate-directory.patch * 0002-setfacl.1-fix-typo-inclu-de-include.patch * 0003-test-fix-insufficient-quoting-of.patch * 0004-Makefile-rename-configure.in-to-configure.ac.patch * 0005-Bad-markup-in-acl.5-page.patch * 0006-.gitignore-ignore-and-config.h.in.patch * 0007-Use-autoreconf-rather-than-autoconf-to-regenerate-th.patch * 0008-libacl-Make-sure-that-acl_from_text-always-sets-errn.patch * 0009-libacl-fix-SIGSEGV-of-getfacl-e-on-overly-long-group.patch * 0010-punt-debian-rpm-packaging-logic.patch * 0011-move-gettext-logic-into-misc.h.patch * 0012-test-make-running-parallel-out-of-tree-safe.patch * 0013-modernize-build-system.patch * 0014-po-regenerate-files-after-move.patch * 0015-build-drop-aclincludedir-use-pkgincludedir.patch * 0016-build-make-use-of-an-aux-dir-to-stow-away-helper-scr.patch * 0017-build-ship-a-pkgconfig-file-for-libacl.patch * 0018-read_acl_-comments-seq-rename-line-to-lineno.patch * 0019-read_acl_-comments-seq-switch-to-next_line.patch * 0020-telldir-return-value-and-seekdir-second-parameters-a.patch * 0021-mark-libmisc-funcs-as-hidden-so-they-are-not-exporte.patch * 0022-add-__acl_-prefixes-to-internal-symbols.patch * 0023-cp.test-Check-permissions-of-the-right-file.patch * 0024-libacl-acl_set_file-Remove-unnecesary-racy-check.patch * 0025-fix-compilation-with-latest-xattr-git.patch * 0026-getfacl-Fix-memory-leak.patch * 0027-Fix-the-display-block-nesting-in-acl.5.patch * 0028-setfacl-man-page-Minor-wording-improvements.patch OBS-URL: https://build.opensuse.org/request/show/347209 OBS-URL: https://build.opensuse.org/package/show/Base:System/acl?expand=0&rev=43
103 lines
3.1 KiB
Diff
103 lines
3.1 KiB
Diff
From e98ce8acf84d12ea67a3ac76bf63c6d87d9af86d Mon Sep 17 00:00:00 2001
|
|
From: Kamil Dudka <kdudka@redhat.com>
|
|
Date: Mon, 20 May 2013 16:38:06 +0200
|
|
Subject: [PATCH 03/34] test: fix insufficient quoting of '\'
|
|
|
|
This is a follow-up to 7f2c91b8369242a8dbc2b304a5b71b2a85f5b855, which
|
|
caused sbits-restore.test to fail in the following way in case SELinux
|
|
was disabled:
|
|
|
|
*** sbits-restore.test ***
|
|
[3] $ umask 022 -- ok
|
|
[4] $ mkdir d -- ok
|
|
[5] $ touch d/g -- ok
|
|
[6] $ touch d/u -- ok
|
|
[7] $ chmod u+s d/u -- ok
|
|
[8] $ chmod g+s d/g -- ok
|
|
[9] $ chmod +t d -- ok
|
|
[10] $ getfacl -R d > d.acl -- ok
|
|
[11] $ rm -R d -- ok
|
|
[12] $ mkdir d -- ok
|
|
[13] $ touch d/g -- ok
|
|
[14] $ touch d/u -- ok
|
|
[15] $ setfacl --restore d.acl -- ok
|
|
[16] $ ls -dl d | awk '{print $1}' | sed 's/.$//g' -- failed
|
|
drwxr-xr- != drwxr-xr-t
|
|
[18] $ ls -dl d/u | awk '{print $1}' | sed 's/.$//g' -- failed
|
|
-rwSr--r- != -rwSr--r--
|
|
[20] $ ls -dl d/g | awk '{print $1}' | sed 's/.$//g' -- failed
|
|
-rw-r-Sr- != -rw-r-Sr--
|
|
[22] $ rm -Rf d -- ok
|
|
17 commands (14 passed, 3 failed)
|
|
---
|
|
test/cp.test | 2 +-
|
|
test/misc.test | 6 +++---
|
|
test/sbits-restore.test | 6 +++---
|
|
3 files changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/test/cp.test b/test/cp.test
|
|
index 0867f63..a927195 100644
|
|
--- a/test/cp.test
|
|
+++ b/test/cp.test
|
|
@@ -9,7 +9,7 @@ The cp utility should only copy ACLs if `-p' is given.
|
|
> -rw-rw-r--+
|
|
|
|
$ cp f g
|
|
- $ ls -l g | awk -- '{ print $1 }' | sed 's/\.$//g'
|
|
+ $ ls -l g | awk -- '{ print $1 }' | sed 's/\\.$//g'
|
|
> -rw-r--r--
|
|
|
|
$ rm g
|
|
diff --git a/test/misc.test b/test/misc.test
|
|
index 6e98053..29372b7 100644
|
|
--- a/test/misc.test
|
|
+++ b/test/misc.test
|
|
@@ -254,7 +254,7 @@ Add some users and groups
|
|
Symlink in directory with default ACL?
|
|
|
|
$ ln -s d d/l
|
|
- $ ls -dl d/l | awk '{print $1}' | sed 's/\.$//g'
|
|
+ $ ls -dl d/l | awk '{print $1}' | sed 's/\\.$//g'
|
|
> lrwxrwxrwx
|
|
|
|
$ ls -dl -L d/l | awk '{print $1}'
|
|
@@ -343,7 +343,7 @@ Remove the default ACL
|
|
Reset to base entries
|
|
|
|
$ setfacl -b d
|
|
- $ ls -dl d | awk '{print $1}' | sed 's/\.$//g'
|
|
+ $ ls -dl d | awk '{print $1}' | sed 's/\\.$//g'
|
|
> drwxr-x---
|
|
|
|
$ getfacl --omit-header d
|
|
@@ -355,7 +355,7 @@ Reset to base entries
|
|
Now, chmod should change the group_obj entry
|
|
|
|
$ chmod 775 d
|
|
- $ ls -dl d | awk '{print $1}' | sed 's/\.$//g'
|
|
+ $ ls -dl d | awk '{print $1}' | sed 's/\\.$//g'
|
|
> drwxrwxr-x
|
|
|
|
$ getfacl --omit-header d
|
|
diff --git a/test/sbits-restore.test b/test/sbits-restore.test
|
|
index de21340..5899b0a 100644
|
|
--- a/test/sbits-restore.test
|
|
+++ b/test/sbits-restore.test
|
|
@@ -13,10 +13,10 @@ Ensure setting of SUID/SGID/sticky via --restore works
|
|
$ touch d/g
|
|
$ touch d/u
|
|
$ setfacl --restore d.acl
|
|
- $ ls -dl d | awk '{print $1}' | sed 's/\.$//g'
|
|
+ $ ls -dl d | awk '{print $1}' | sed 's/\\.$//g'
|
|
> drwxr-xr-t
|
|
- $ ls -dl d/u | awk '{print $1}' | sed 's/\.$//g'
|
|
+ $ ls -dl d/u | awk '{print $1}' | sed 's/\\.$//g'
|
|
> -rwSr--r--
|
|
- $ ls -dl d/g | awk '{print $1}' | sed 's/\.$//g'
|
|
+ $ ls -dl d/g | awk '{print $1}' | sed 's/\\.$//g'
|
|
> -rw-r-Sr--
|
|
$ rm -Rf d
|
|
--
|
|
2.5.2
|
|
|