]> git.pld-linux.org Git - packages/at.git/commitdiff
- buflen patch from rawhide. at-3_1_8-16
authorkloczek <kloczek@pld-linux.org>
Thu, 29 Jun 2000 17:20:44 +0000 (17:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    at-buflen.patch -> 1.1

at-buflen.patch [new file with mode: 0644]

diff --git a/at-buflen.patch b/at-buflen.patch
new file mode 100644 (file)
index 0000000..eb792b7
--- /dev/null
@@ -0,0 +1,24 @@
+--- at-3.1.8/atd.c.buflen      Fri Jun  9 11:46:54 2000
++++ at-3.1.8/atd.c     Fri Jun  9 11:47:29 2000
+@@ -196,7 +196,7 @@
+  */
+     pid_t pid;
+     int fd_out, fd_in;
+-    char mailbuf[9], jobbuf[9];
++    char mailbuf[256], jobbuf[9];
+     char *mailname = NULL;
+     char *newname;
+     FILE *stream;
+@@ -299,10 +299,11 @@
+      * NFS and works with local file systems.  It's not clear where
+      * the bug is located.  -Joey
+      */
+-    if (fscanf(stream, "#!/bin/sh\n# atrun uid=%d gid=%d\n# mail %8s %d",
++    if (fscanf(stream, "#!/bin/sh\n# atrun uid=%d gid=%d\n# mail %255s %d",
+              &nuid, &ngid, mailbuf, &send_mail) != 4)
+       pabort("File %.500s is in wrong format - aborting",
+              filename);
++    mailbuf[255] = '\0';
+     if (mailbuf[0] == '-')
+       pabort("illegal mail name %.300s in job %8lu (%.300s)", mailbuf,
This page took 0.038958 seconds and 4 git commands to generate.