gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] 02/02: fix portability bug: make sure destination file


From: gnunet
Subject: [taler-exchange] 02/02: fix portability bug: make sure destination file is writeable
Date: Thu, 30 Jun 2022 09:35:11 +0200

This is an automated email from the git hooks/post-receive script.

ttn pushed a commit to branch master
in repository exchange.

commit 4cf70435b27fbe16a539e4d39ae0c745941f4d1c
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
AuthorDate: Thu Jun 30 03:34:54 2022 -0400

    fix portability bug: make sure destination file is writeable
    
    Some shells let this go w/o comment, some don't.
    Better to be sure.
    
    (ensure): If "$dst" exists, make sure it is writeable.
---
 contrib/gana-update.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/gana-update.sh b/contrib/gana-update.sh
index e16c6741..b20bbaa1 100755
--- a/contrib/gana-update.sh
+++ b/contrib/gana-update.sh
@@ -22,6 +22,7 @@ ensure ()
 
     if ! diff $src $dst > /dev/null
     then
+        test ! -f $dst || chmod +w $dst
         cp $src $dst
         chmod -w $dst
     fi

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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