bug-bash
[Top][All Lists]
Advanced

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

Re: Hidden directories breaks path expansions


From: Chet Ramey
Subject: Re: Hidden directories breaks path expansions
Date: Mon, 4 Mar 2019 09:00:38 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

On 3/4/19 8:19 AM, werner@suse.de wrote:

> Bash Version: 5.0
> Patch Level: 2
> Release Status: release
> 
> Description:
>       Since patch bash50-001 there is a regession on path expansion.
>         The script example below shows:
> 
>         bash/bash> bash tmp/bug.sh
>       5.0.2(1)-release
>       drwxr-xr-x 2 nobody root 17 Mar  4 14:08 .
> 
>       bash/bash> /dist/unpacked/sle15-x86_64.full/bin/bash tmp/bug.sh
>       4.4.23(1)-release
>       -rw-r--r-- 1 nobody root 0 Mar  4 14:10 
> /tmp/bugthroughpatch001/hidden/foo/bar
> 
>       Disabling patch bash50-001 solves this problem but cause
>       other problems. It seems as seen by strace and ltrace that
>       the bash with patch bash50-001 now makes a stat(2) on every
>       single part of the path and run onto EACCES error which cause
>       the regression above.

http://lists.gnu.org/archive/html/bug-bash/2019-02/msg00151.html

There is a slightly updated version of that patch attached to this message.


-- 
``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/

Attachment: globpat-backslashes
Description: Text document


reply via email to

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