diff options
author | 2004-04-06 21:31:10 +0000 | |
---|---|---|
committer | 2004-04-06 21:31:10 +0000 | |
commit | acad4145311773b9972f63b87a38fb7ecde0bdfa (patch) | |
tree | 23c2920cccc8671c4712bb28ca6cceee4c6acf56 /sys-apps/at/files/at-3.1.8-longuser.patch | |
parent | typo (Manifest recommit) (diff) | |
download | gentoo-2-acad4145311773b9972f63b87a38fb7ecde0bdfa.tar.gz gentoo-2-acad4145311773b9972f63b87a38fb7ecde0bdfa.tar.bz2 gentoo-2-acad4145311773b9972f63b87a38fb7ecde0bdfa.zip |
Fix bug 33696 by allowing long usernames in atd, thanks to Yuval Kogman for the patch
Diffstat (limited to 'sys-apps/at/files/at-3.1.8-longuser.patch')
-rw-r--r-- | sys-apps/at/files/at-3.1.8-longuser.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-apps/at/files/at-3.1.8-longuser.patch b/sys-apps/at/files/at-3.1.8-longuser.patch new file mode 100644 index 000000000000..0f2ebb585f7e --- /dev/null +++ b/sys-apps/at/files/at-3.1.8-longuser.patch @@ -0,0 +1,20 @@ +--- at-3.1.8/atd.c.old 2002-01-17 23:15:27.000000000 -0500 ++++ at-3.1.8/atd.c 2004-04-06 15:27:00.000000000 -0400 +@@ -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,7 +299,7 @@ + * 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); |