bug-gzip
[Top][All Lists]
Advanced

[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: Paul Eggert
Subject: bug#29266: gzip-1.8.41 test results: help-version and hard links
Date: Wed, 15 Nov 2017 23:43:04 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 11/15/2017 09:32 PM, Jim Meyering 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? Althoug 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".






reply via email to

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