Package: at
Version: 3.1.10.2

----- Forwarded message from Michal Seben <mse...@suse.cz> -----

Date: Fri, 06 Mar 2009 09:36:55 +0100
From: Michal Seben <mse...@suse.cz>
To: m...@debian.org
Subject: patch to fix permissions for unlink

hello

I hope this is upstream mail for atd :)

could you please apply attached patch ?
it allow clean up empty job files (which were caused by full disk) for
normal user
these empty jobs, could lead to livelock, see bugreport on bnc#478733

thanks



--- panic.c
+++ panic.c
@@ -58,8 +58,11 @@
 /* Something fatal has happened, print error message and exit.
  */
     fprintf(stderr, "%s: %s\n", namep, a);
-    if (fcreated)
+    if (fcreated){
+       PRIV_START
        unlink(atfile);
+       PRIV_END
+    }
 
     exit(EXIT_FAILURE);
 }



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to