Thread (2 messages) read the whole thread 2 messages, 2 authors, 2012-11-21

Re: [LTP] [PATCH] ar01: fix a bug of attribute "selinux" in rhel6

From: chrubis@suse.cz
Date: 2012-11-21 14:55:47

Hi!
quoted hunk ↗ jump to hunk
When SELinux is enabled, "ls -ln" will list permissions with "-rw-r--r--.",
but "ar -tv" will list permissions with "-rw-r--r--"???so the case 22 will fail.

Signed-off-by: Peng Haitao <redacted>
---
 testcases/commands/ade/ar/ar01 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/commands/ade/ar/ar01 b/testcases/commands/ade/ar/ar01
index 948c1fe..32fef11 100755
--- a/testcases/commands/ade/ar/ar01
+++ b/testcases/commands/ade/ar/ar01
@@ -536,7 +536,7 @@ do
 	ls -ln --time-style=+%b" "%e" "%H:%M file1.in file2.in file3.in |
 	while read permissions link uid gid size month day time file_name
 	do
-		echo "$permissions;$uid/$gid;$size;$month;$day;$time;$file_name"
+		echo "${permissions%.};$uid/$gid;$size;$month;$day;$time;$file_name"
 	done >>  $TCtmp/lib.a.exp
 	ar -tv $TCtmp/lib.a |
Acked.

However please include a short description of the solution to the commit
log as well.

Something like "This patch removes the dot from the end of the
permission string if there was one."

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help