coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 9/9] cp: -Z: adjust an existing selinux test to the new scheme


From: Pádraig Brady
Subject: [PATCH 9/9] cp: -Z: adjust an existing selinux test to the new scheme
Date: Wed, 28 Nov 2012 01:43:19 +0000

* tests/mkdir/selinux.sh: s/-Z/--context=/
---
 tests/mkdir/selinux.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/mkdir/selinux.sh b/tests/mkdir/selinux.sh
index bb1aab9..a6deb36 100755
--- a/tests/mkdir/selinux.sh
+++ b/tests/mkdir/selinux.sh
@@ -32,7 +32,7 @@ msg="failed to set default file creation context to '$c':"
 for cmd_w_arg in 'mkdir dir' 'mknod b p' 'mkfifo f'; do
   # In OpenBSD's /bin/sh, mknod is a shell built-in.
   # Running via "env" ensures we run our program and not the built-in.
-  env -- $cmd_w_arg -Z $c 2> out && fail=1
+  env -- $cmd_w_arg --context=$c 2> out && fail=1
   set $cmd_w_arg; cmd=$1
   echo "$cmd: $msg" > exp || fail=1
 
-- 
1.7.6.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]