[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29266: gzip-1.8.41 test results: help-version and hard links
From: |
Jim Meyering |
Subject: |
bug#29266: gzip-1.8.41 test results: help-version and hard links |
Date: |
Thu, 16 Nov 2017 07:29:14 -0800 |
On Thu, Nov 16, 2017 at 7:18 AM, Jim Meyering <address@hidden> wrote:
> On Thu, Nov 16, 2017 at 2:37 AM, Bruno Haible <address@hidden> wrote:
>> Paul Eggert wrote:
>>> > + ln -f "$file" "$file~" 2>/dev/null || cp -f "$file" "$file~" || {
>>>
>>> This will be problematic if the destination already exists, as the
>>> resulting permissions etc. may not be what the user intend. How about if
>>> we fall back on "mv -f" instead? Although this has the disadvantage of
>>> having a small window where "$file" does not exist, I think that's
>>> preferable to the disadvantage of using "cp".
P.S., thanks to both of you for the reviews and suggestions.
FYI, I've also pushed this:
gzip-make-generated-unwritable.diff
Description: Text document
- bug#29266: gzip-1.8.41 test results: help-version on HP-UX, (continued)
bug#29266: gzip-1.8.41 test results: help-version and hard links, Bruno Haible, 2017/11/12
- bug#29266: gzip-1.8.41 test results: help-version and hard links, Jim Meyering, 2017/11/16
- bug#29266: gzip-1.8.41 test results: help-version and hard links, Paul Eggert, 2017/11/16
- bug#29266: gzip-1.8.41 test results: help-version and hard links, Bruno Haible, 2017/11/16
- bug#29266: gzip-1.8.41 test results: help-version and hard links, Jim Meyering, 2017/11/16
- bug#29266: gzip-1.8.41 test results: help-version and hard links,
Jim Meyering <=
- bug#29266: gzip-1.8.41 test results: help-version and hard links, Paul Eggert, 2017/11/16