]> git.pld-linux.org Git - packages/autofs.git/blame - autofs-5.0.4-use-CLOEXEC-flag-setmntent-include-fix.patch
- updated to 5.0.5, nfy.
[packages/autofs.git] / autofs-5.0.4-use-CLOEXEC-flag-setmntent-include-fix.patch
CommitLineData
e5fd101c
PS
1autofs-5.0.4 - use CLOEXEC flag setmntent include fix
2
3From: Ian Kent <raven@themaw.net>
4
5Fix mntent.h not included before use of setmntent_r() in automount.h.
6---
7
8 include/automount.h | 1 +
9 lib/dev-ioctl-lib.c | 1 -
10 lib/mounts.c | 1 -
11 3 files changed, 1 insertions(+), 2 deletions(-)
12
13
14diff --git a/include/automount.h b/include/automount.h
15index 1f14d5b..615e07d 100644
16--- a/include/automount.h
17+++ b/include/automount.h
18@@ -19,6 +19,7 @@
19 #include <errno.h>
20 #include <unistd.h>
21 #include <fcntl.h>
22+#include <mntent.h>
23 #include "config.h"
24 #include "list.h"
25
26diff --git a/lib/dev-ioctl-lib.c b/lib/dev-ioctl-lib.c
27index 056a0a9..7c8c433 100644
28--- a/lib/dev-ioctl-lib.c
29+++ b/lib/dev-ioctl-lib.c
30@@ -22,7 +22,6 @@
31 #include <sys/stat.h>
32 #include <sys/ioctl.h>
33 #include <fcntl.h>
34-#include <mntent.h>
35 #include <sys/vfs.h>
36
37 #include "automount.h"
38diff --git a/lib/mounts.c b/lib/mounts.c
39index 08ca4e3..4787bb6 100644
40--- a/lib/mounts.c
41+++ b/lib/mounts.c
42@@ -14,7 +14,6 @@
43
44 #include <stdlib.h>
45 #include <string.h>
46-#include <mntent.h>
47 #include <limits.h>
48 #include <sys/types.h>
49 #include <sys/stat.h>
This page took 0.13505 seconds and 4 git commands to generate.