Blame autofs-5.0.4-use-CLOEXEC-flag-setmntent-include-fix.patch
|
Ian Kent |
d858d3 |
autofs-5.0.4 - use CLOEXEC flag setmntent include fix
|
|
Ian Kent |
d858d3 |
|
|
Ian Kent |
d858d3 |
From: Ian Kent <raven@themaw.net>
|
|
Ian Kent |
d858d3 |
|
|
Ian Kent |
d858d3 |
Fix mntent.h not included before use of setmntent_r() in automount.h.
|
|
Ian Kent |
d858d3 |
---
|
|
Ian Kent |
d858d3 |
|
|
Ian Kent |
d858d3 |
include/automount.h | 1 +
|
|
Ian Kent |
d858d3 |
lib/dev-ioctl-lib.c | 1 -
|
|
Ian Kent |
d858d3 |
lib/mounts.c | 1 -
|
|
Ian Kent |
d858d3 |
3 files changed, 1 insertions(+), 2 deletions(-)
|
|
Ian Kent |
d858d3 |
|
|
Ian Kent |
d858d3 |
|
|
Ian Kent |
d858d3 |
diff --git a/include/automount.h b/include/automount.h
|
|
Ian Kent |
d858d3 |
index 1f14d5b..615e07d 100644
|
|
Ian Kent |
d858d3 |
--- a/include/automount.h
|
|
Ian Kent |
d858d3 |
+++ b/include/automount.h
|
|
Ian Kent |
d858d3 |
@@ -19,6 +19,7 @@
|
|
Ian Kent |
d858d3 |
#include <errno.h>
|
|
Ian Kent |
d858d3 |
#include <unistd.h>
|
|
Ian Kent |
d858d3 |
#include <fcntl.h>
|
|
Ian Kent |
d858d3 |
+#include <mntent.h>
|
|
Ian Kent |
d858d3 |
#include "config.h"
|
|
Ian Kent |
d858d3 |
#include "list.h"
|
|
Ian Kent |
d858d3 |
|
|
Ian Kent |
d858d3 |
diff --git a/lib/dev-ioctl-lib.c b/lib/dev-ioctl-lib.c
|
|
Ian Kent |
d858d3 |
index 056a0a9..7c8c433 100644
|
|
Ian Kent |
d858d3 |
--- a/lib/dev-ioctl-lib.c
|
|
Ian Kent |
d858d3 |
+++ b/lib/dev-ioctl-lib.c
|
|
Ian Kent |
d858d3 |
@@ -22,7 +22,6 @@
|
|
Ian Kent |
d858d3 |
#include <sys/stat.h>
|
|
Ian Kent |
d858d3 |
#include <sys/ioctl.h>
|
|
Ian Kent |
d858d3 |
#include <fcntl.h>
|
|
Ian Kent |
d858d3 |
-#include <mntent.h>
|
|
Ian Kent |
d858d3 |
#include <sys/vfs.h>
|
|
Ian Kent |
d858d3 |
|
|
Ian Kent |
d858d3 |
#include "automount.h"
|
|
Ian Kent |
d858d3 |
diff --git a/lib/mounts.c b/lib/mounts.c
|
|
Ian Kent |
d858d3 |
index 08ca4e3..4787bb6 100644
|
|
Ian Kent |
d858d3 |
--- a/lib/mounts.c
|
|
Ian Kent |
d858d3 |
+++ b/lib/mounts.c
|
|
Ian Kent |
d858d3 |
@@ -14,7 +14,6 @@
|
|
Ian Kent |
d858d3 |
|
|
Ian Kent |
d858d3 |
#include <stdlib.h>
|
|
Ian Kent |
d858d3 |
#include <string.h>
|
|
Ian Kent |
d858d3 |
-#include <mntent.h>
|
|
Ian Kent |
d858d3 |
#include <limits.h>
|
|
Ian Kent |
d858d3 |
#include <sys/types.h>
|
|
Ian Kent |
d858d3 |
#include <sys/stat.h>
|