diff options
author | Jim Meyering <jim@meyering.net> | 2005-01-30 14:29:03 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-01-30 14:29:03 +0000 |
commit | 110280e2ef9fea91fb50203a69a24238b576028f (patch) | |
tree | 7acbaf4dfbdcd1bf7a56fab2c57562745db787de /tests/rwx-to-mode | |
parent | 828850baaaf31e6a879b1e0ca286e8d7b47af84e (diff) | |
download | coreutils-110280e2ef9fea91fb50203a69a24238b576028f.tar.xz |
Ignore ACL designation.
Diffstat (limited to 'tests/rwx-to-mode')
-rwxr-xr-x | tests/rwx-to-mode | 3 |
1 files changed, 2 insertions, 1 deletions
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 |