- massive attack s/pld.org.pl/pld-linux.org/
[packages/at.git] / at-buflen.patch
CommitLineData
ad7294ed 1--- at-3.1.8/atd.c.buflen Fri Jun 9 11:46:54 2000
2+++ at-3.1.8/atd.c Fri Jun 9 11:47:29 2000
3@@ -196,7 +196,7 @@
4 */
5 pid_t pid;
6 int fd_out, fd_in;
7- char mailbuf[9], jobbuf[9];
8+ char mailbuf[256], jobbuf[9];
9 char *mailname = NULL;
10 char *newname;
11 FILE *stream;
12@@ -299,10 +299,11 @@
13 * NFS and works with local file systems. It's not clear where
14 * the bug is located. -Joey
15 */
16- if (fscanf(stream, "#!/bin/sh\n# atrun uid=%d gid=%d\n# mail %8s %d",
17+ if (fscanf(stream, "#!/bin/sh\n# atrun uid=%d gid=%d\n# mail %255s %d",
18 &nuid, &ngid, mailbuf, &send_mail) != 4)
19 pabort("File %.500s is in wrong format - aborting",
20 filename);
21+ mailbuf[255] = '\0';
22
23 if (mailbuf[0] == '-')
24 pabort("illegal mail name %.300s in job %8lu (%.300s)", mailbuf,
This page took 0.030911 seconds and 4 git commands to generate.