rpms/coreutils/devel coreutils-6.10-mkscontextsegfault.patch, 1.1, 1.2
Ondrej Vasik (ovasik)
fedora-extras-commits at redhat.com
Sun Mar 30 09:06:38 UTC 2008
- Previous message (by thread): rpms/centerim/F-8 Centerim_b.svg, NONE, 1.1 centerim-4.22.3-url-escape-fedora.patch, NONE, 1.1 centerim.desktop, NONE, 1.1 .cvsignore, 1.3, 1.4 centerim.spec, 1.5, 1.6 sources, 1.3, 1.4 centerim-4.22.1-icqack.patch, 1.1, NONE centerim-4.22.1-libyahoo.patch, 1.1, NONE centerim-4.22.1-ljtags.patch, 1.1, NONE centerim-4.22.1-ljtypo.patch, 1.1, NONE centerim-4.22.1-msn-NOT.patch, 1.1, NONE centerim-4.22.1-overflows.patch, 1.1, NONE centerim-4.22.1-quitask.patch, 1.1, NONE
- Next message (by thread): rpms/centerim/F-7 Centerim_b.svg, NONE, 1.1 centerim-4.22.3-url-escape-fedora.patch, NONE, 1.1 centerim.desktop, NONE, 1.1 .cvsignore, 1.2, 1.3 centerim.spec, 1.3, 1.4 sources, 1.2, 1.3 centerim-4.22.1-icqack.patch, 1.1, NONE centerim-4.22.1-libyahoo.patch, 1.1, NONE centerim-4.22.1-ljtags.patch, 1.1, NONE centerim-4.22.1-ljtypo.patch, 1.1, NONE centerim-4.22.1-msn-NOT.patch, 1.1, NONE centerim-4.22.1-overflows.patch, 1.1, NONE centerim-4.22.1-quitask.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: ovasik
Update of /cvs/extras/rpms/coreutils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24519
Modified Files:
coreutils-6.10-mkscontextsegfault.patch
Log Message:
avoid failure of mkdir/mkfifo test on kernel without SELinux
coreutils-6.10-mkscontextsegfault.patch:
Index: coreutils-6.10-mkscontextsegfault.patch
===================================================================
RCS file: /cvs/extras/rpms/coreutils/devel/coreutils-6.10-mkscontextsegfault.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- coreutils-6.10-mkscontextsegfault.patch 29 Mar 2008 17:14:21 -0000 1.1
+++ coreutils-6.10-mkscontextsegfault.patch 30 Mar 2008 09:06:27 -0000 1.2
@@ -56,7 +56,7 @@
diff -urNp coreutils-6.10-orig/tests/mkdir/selinux coreutils-6.10/tests/mkdir/selinux
--- coreutils-6.10-orig/tests/mkdir/selinux 1970-01-01 01:00:00.000000000 +0100
+++ coreutils-6.10/tests/mkdir/selinux 2008-03-29 17:58:25.000000000 +0100
-@@ -0,0 +1,53 @@
+@@ -0,0 +1,50 @@
+#!/bin/sh
+# ensure that an invalid context doesn't cause a segfault
+
@@ -87,26 +87,23 @@
+. $srcdir/../test-lib.sh
+
+c=invalid-selinux-context
-+
+fail=0
-+mkdir -Z $c dir-arg 2> out && fail=1
-+cat <<EOF > exp || fail=1
-+mkdir: failed to set default file creation context to \`$c': Invalid argument
-+EOF
-+compare out exp || fail=1
-+
-+# Until coreutils-6.10.150, mknod and mkfifo had the same problem:
-+
-+mknod -Z $c b p 2> out && fail=1
-+cat <<EOF > exp || fail=1
-+mknod: failed to set default file creation context to \`$c': Invalid argument
-+EOF
-+compare out exp || fail=1
-+
-+mkfifo -Z $c f 2> out && fail=1
-+cat <<EOF > exp || fail=1
-+mkfifo: failed to set default file creation context to \`$c': Invalid argument
-+EOF
-+compare out exp || fail=1
++msg="failed to set default file creation context to \`$c':"
++
++# Test each of mkdir, mknod, mkfifo with "-Z invalid-context".
++
++for cmd_w_arg in 'mkdir dir' 'mknod b p' 'mkfifo f'; do
++ $cmd_w_arg -Z $c 2> out && fail=1
++ set $cmd_w_arg; cmd=$1
++ echo "$cmd: $msg" > exp || fail=1
++
++ # Some systems fail with ENOTSUP, or EINVAL, or even ENOENT.
++ sed \
++ -e 's/ Invalid argument$//' \
++ -e 's/ Operation not supported$//' \
++ -e 's/ No such file or directory$//' out > k || fail=1
++ mv k out || fail=1
++ compare out exp || fail=1
++done
+
+(exit $fail); exit $fail
- Previous message (by thread): rpms/centerim/F-8 Centerim_b.svg, NONE, 1.1 centerim-4.22.3-url-escape-fedora.patch, NONE, 1.1 centerim.desktop, NONE, 1.1 .cvsignore, 1.3, 1.4 centerim.spec, 1.5, 1.6 sources, 1.3, 1.4 centerim-4.22.1-icqack.patch, 1.1, NONE centerim-4.22.1-libyahoo.patch, 1.1, NONE centerim-4.22.1-ljtags.patch, 1.1, NONE centerim-4.22.1-ljtypo.patch, 1.1, NONE centerim-4.22.1-msn-NOT.patch, 1.1, NONE centerim-4.22.1-overflows.patch, 1.1, NONE centerim-4.22.1-quitask.patch, 1.1, NONE
- Next message (by thread): rpms/centerim/F-7 Centerim_b.svg, NONE, 1.1 centerim-4.22.3-url-escape-fedora.patch, NONE, 1.1 centerim.desktop, NONE, 1.1 .cvsignore, 1.2, 1.3 centerim.spec, 1.3, 1.4 sources, 1.2, 1.3 centerim-4.22.1-icqack.patch, 1.1, NONE centerim-4.22.1-libyahoo.patch, 1.1, NONE centerim-4.22.1-ljtags.patch, 1.1, NONE centerim-4.22.1-ljtypo.patch, 1.1, NONE centerim-4.22.1-msn-NOT.patch, 1.1, NONE centerim-4.22.1-overflows.patch, 1.1, NONE centerim-4.22.1-quitask.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list