debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #05882
[Bug 2100849] Re: anacron 2.3-41ubuntu1 not removing temp files
** Changed in: anacron (Debian)
Status: Unknown => Fix Released
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to anacron in Ubuntu.
https://bugs.launchpad.net/bugs/2100849
Title:
anacron 2.3-41ubuntu1 not removing temp files
Status in anacron package in Ubuntu:
Triaged
Status in anacron package in Debian:
Fix Released
Bug description:
Version 2.3-41ubuntu1 changed runjob.c:temp_file() to use mkstemp()
instead of tempnam() but forgets to unlink the temp file after
creating it as the old code used to do. It can be added back with just
one line of code:
--- anacron-2.3-41ubuntu1/runjob.c.orig 2025-03-04 11:25:47.000000000 +0100
+++ anacron-2.3-41ubuntu1/runjob.c 2025-03-04 11:42:41.680928448 +0100
@@ -52,6 +52,7 @@
} while (fd == -1 && i < max_retries);
if (fd == -1) die_e("Failed to create and open unique temporary filename");
+ if (unlink(template)) die_e("Can't unlink temporary file");
fcntl(fd, F_SETFD, 1); /* set close-on-exec flag */
return fd;
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/2100849/+subscriptions