[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] allow file modes up to 7777 instead of 777
From: |
Chet Ramey |
Subject: |
Re: [PATCH] allow file modes up to 7777 instead of 777 |
Date: |
Thu, 15 Mar 2018 15:40:45 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 3/14/18 11:49 AM, Martijn Dekker wrote:
> This fixes two bugs:
>
> 1. The example 'mkdir' builtin, examples/loadables/mkdir.c, has a broken
> '-m' option that doesn't accept sticky/setuid/setgid.
>
> $ ./bash -c '(cd examples/loadables && make mkdir) &&
> enable -f examples/loadables/mkdir mkdir &&
> mkdir -m2775 foo'
> ['make' output skipped]
> ./bash: line 2: mkdir: invalid file mode: 2775
>
> 2. The 'umask' builtin doesn't accept modes > 0777.
Thanks for the report and fix.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/