From 110280e2ef9fea91fb50203a69a24238b576028f Mon Sep 17 00:00:00 2001
From: Jim Meyering <jim@meyering.net>
Date: Sun, 30 Jan 2005 14:29:03 +0000
Subject: Ignore ACL designation.

---
 tests/rwx-to-mode | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'tests/rwx-to-mode')

diff --git a/tests/rwx-to-mode b/tests/rwx-to-mode
index 740e77a0e..e58b73d40 100755
--- a/tests/rwx-to-mode
+++ b/tests/rwx-to-mode
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx
 # to the equivalent chmod --mode (-m) argument, (=,u=rwx,g=r,o=x and
-# =,u=rw,g=rx,o=wx).
+# =,u=rw,g=rx,o=wx).  Ignore ACLs.
 
 case $# in
   1) rwx=$1;;
@@ -12,6 +12,7 @@ esac
 
 case $rwx in
   [ld-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxtT-]) ;;
+  [ld-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxtT-]+) ;;
   *) echo "$0: invalid mode string: $rwx" 1>&2; exit 1;;
 esac
 
-- 
cgit v1.2.3-70-g09d2