diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-04-08 09:44:49 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-04-08 10:20:59 +0200 |
commit | d525da858da26aa47fd3a931dad9bac2fefe7600 (patch) | |
tree | e1303b7c4f58f45a05d2576bdadfdc831bb30f89 /gnu/packages/patches | |
parent | de4b3828ca1d76254d5cd062f76be73e249561ca (diff) | |
download | guix-d525da858da26aa47fd3a931dad9bac2fefe7600.tar guix-d525da858da26aa47fd3a931dad9bac2fefe7600.tar.gz |
gnu: inetutils: Apply syslogd patch.
* gnu/packages/patches/inetutils-syslogd.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/admin.scm (inetutils)[source]: Use it.
[native-inputs]: New field.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/inetutils-syslogd.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/patches/inetutils-syslogd.patch b/gnu/packages/patches/inetutils-syslogd.patch new file mode 100644 index 0000000000..0bf9eb7fc6 --- /dev/null +++ b/gnu/packages/patches/inetutils-syslogd.patch @@ -0,0 +1,20 @@ +From <http://lists.gnu.org/archive/html/bug-inetutils/2015-04/msg00001.html>. + +2015-04-01 Ludovic Courtès <ludo@gnu.org> + + * src/syslogd.c (load_conffile): Use 'bcopy' instead of 'strcpy' + since the two regions may overlap. + Reported by Alex Kost <alezost@gmail.com> + at <http://lists.gnu.org/archive/html/guix-devel/2015-03/msg00780.html>. + +--- a/src/syslogd.c ++++ b/src/syslogd.c +@@ -1989,7 +1989,7 @@ load_conffile (const char *filename, struct filed **nextp) + if (*p == '\0' || *p == '#') + continue; + +- strcpy (cline, p); ++ bcopy (p, cline, strlen (p) + 1); + + /* Cut the trailing spaces. */ + for (p = strchr (cline, '\0'); isspace (*--p);) |