mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-30 08:02:38 -05:00
59ae241f71
* gnu/packages/web.scm (xinetd): New variable. * gnu/packages/patches/xinetd-CVE-2013-4342.patch, gnu/packages/patches/xinetd-fix-fd-leak.patch: New files. * gnu/local.mk (dist_patch_DATA): Add patches. Signed-off-by: Leo Famulari <leo@famulari.name>
26 lines
592 B
Diff
26 lines
592 B
Diff
Fix a file descriptor leak:
|
|
|
|
https://github.com/xinetd-org/xinetd/issues/23
|
|
|
|
Patch copied from Debian:
|
|
|
|
https://anonscm.debian.org/cgit/collab-maint/xinetd.git/tree/debian/patches/000012-fix_fd_leak
|
|
|
|
Patch sent upstream at https://github.com/xinetd-org/xinetd/pull/26.
|
|
|
|
diff --git a/xinetd/xgetloadavg.c b/xinetd/xgetloadavg.c
|
|
index 5a26214..fe0f872 100644
|
|
--- a/xinetd/xgetloadavg.c
|
|
+++ b/xinetd/xgetloadavg.c
|
|
@@ -34,7 +34,7 @@ double xgetloadavg(void)
|
|
|
|
if( fscanf(fd, "%lf", &ret) != 1 ) {
|
|
perror("fscanf");
|
|
- return -1;
|
|
+ ret = -1;
|
|
}
|
|
|
|
fclose(fd);
|
|
--
|
|
2.7.4
|
|
|