Package: at
Version: 3.1.16-1
Severity: normal
Tags: upstream patch
writefile() does not fflush output file stream before
checking for errors, at often creates empty job files
when there is no disk space available in spool directory
Fix:
--- at-3.1.13.orig/at.c
+++ at-3.1.13/at.c
@@ -477,6 +493,7 @@
fprintf(stderr, "<EOT>\n");
}
fprintf(fp, "\n");
+ fflush(fp);
if (ferror(fp))
panic("Output error");
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (860, 'stable-updates'), (850, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages at depends on:
ii init-system-helpers 1.22
ii libc6 2.19-18+deb8u1
ii libpam-runtime 1.1.8-3.1
ii libpam0g 1.1.8-3.1
ii lsb-base 4.1+Debian13+nmu1
Versions of packages at recommends:
ii sendmail-bin [mail-transport-agent] 8.14.4-8
at suggests no packages.
-- Configuration Files:
/etc/at.deny [Errno 13] Permission denied: u'/etc/at.deny'
-- no debconf information