]> git.pld-linux.org Git - packages/autofs.git/blob - 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
1 autofs-5.0.4 - use CLOEXEC flag setmntent include fix
2
3 From: Ian Kent <raven@themaw.net>
4
5 Fix 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
14 diff --git a/include/automount.h b/include/automount.h
15 index 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  
26 diff --git a/lib/dev-ioctl-lib.c b/lib/dev-ioctl-lib.c
27 index 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"
38 diff --git a/lib/mounts.c b/lib/mounts.c
39 index 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.060405 seconds and 3 git commands to generate.