coreutils
[Top][All Lists]
Advanced

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

Re: bug#21497: install from multiple sources to -t target uses incorrect


From: Pádraig Brady
Subject: Re: bug#21497: install from multiple sources to -t target uses incorrect folder on some sources
Date: Sat, 2 Jan 2016 22:28:56 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 16/09/15 15:29, Chris Severance wrote:
> The following script of 4 equivalent installs does not complete.
> 
> #!/usr/bin/bash
> 
> set -e
> set -u
> 
> # Bug report for install (GNU coreutils) 8.24
> # Arch Linux gq 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST
> 2015 x86_64 GNU/Linux
> # The following 4 install do the same thing. One will fail.
> 
> rm -rf 'testin' 'testout'
> mkdir -p 'testin/d2'
> touch 'testin/f1' 'testin/d2/f2' 'f3'
> echo 'Try 1'
> install -Dpm644 'testin/f1' 'testin/d2/f2' 'f3' -t "${PWD}/testout/"
> rm -rf 'testout'
> echo 'Try 2'
> install -Dpm644 "${PWD}/testin/f1" "${PWD}/testin/d2/f2" 'f3' -t
> "testout/"
> rm -rf 'testout'
> echo 'Try 3'
> install -Dpm644 'f3' "${PWD}/testin/f1" "${PWD}/testin/d2/f2" -t
> "${PWD}/testout/"
> rm -rf 'testout'
> echo 'Try 4 will fail'
> install -Dpm644 "${PWD}/testin/f1" "${PWD}/testin/d2/f2" 'f3' -t
> "${PWD}/testout/"
> # install: cannot stat 'f3': No such file or directory

Thanks for the excellent summary.

The first attached patch should fix this.
Also included are another 2 improvements
I noticed while implementing the fix.

thanks,
Pádraig.

Attachment: install-D-relative.patch
Description: Text Data


reply via email to

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