Source: nn
Version: 6.7.3-14
Severity: normal
Tags: patch

Dear Maintainer,

>From 0f46483d7b072826e6ec74221db0a95d3fe8840c Mon Sep 17 00:00:00 2001
>From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
>Date: Sun, 28 Feb 2021 18:08:47 +0000
>Subject: [PATCH] back_act.sh: empty file $ACTIVE after saving it

  back_act.sh: empty file $ACTIVE after saving it

Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
---
 back_act.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/back_act.sh b/back_act.sh
index c5cebf4..a99cf7d 100644
--- a/back_act.sh
+++ b/back_act.sh
@@ -29,5 +29,5 @@ do
        p=$i
 done
 
-cp $ACTIVE active.0
+cp $ACTIVE active.0 && : > $ACTIVE || :
 chmod 644 active.0
-- 
2.30.1



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.9-1 (SMP w/2 CPU threads)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

-- debconf information excluded

-- 
Bjarni I. Gislason

Reply via email to