Explorar o código

Handle interval=0 correctly in apt.cron.daily:check_stamp

Matt Zimmerman %!s(int64=22) %!d(string=hai) anos
pai
achega
10946ddce7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      debian/apt.cron.daily

+ 4 - 0
debian/apt.cron.daily

@@ -8,6 +8,10 @@ check_stamp()
     stamp="$1"
     interval="$2"
 
+    if [ $interval -eq 0 ]; then
+        return 1
+    fi
+
     if [ ! -f $stamp ]; then
         return 0
     fi