|
|
306fa1 |
autofs-5.1.3 - fix open calls not using open_xxxx() calls
|
|
|
306fa1 |
|
|
|
306fa1 |
From: Ian Kent <raven@themaw.net>
|
|
|
306fa1 |
|
|
|
306fa1 |
Fix a couple of remaining open descriptor calls to use the autofs
|
|
|
306fa1 |
open_xxxx() calls.
|
|
|
306fa1 |
|
|
|
306fa1 |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
306fa1 |
---
|
|
|
306fa1 |
CHANGELOG | 1 +
|
|
|
306fa1 |
daemon/automount.c | 2 +-
|
|
|
306fa1 |
lib/mounts.c | 2 +-
|
|
|
306fa1 |
3 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
306fa1 |
|
|
|
306fa1 |
--- autofs-5.0.7.orig/CHANGELOG
|
|
|
306fa1 |
+++ autofs-5.0.7/CHANGELOG
|
|
|
306fa1 |
@@ -286,6 +286,7 @@
|
|
|
306fa1 |
- fix strerror_r() parameter declaration in do program_mount().
|
|
|
306fa1 |
- fix incorrect check in validate_program_options().
|
|
|
306fa1 |
- update configure to check for pipe2(2).
|
|
|
306fa1 |
+- fix open calls not using open_xxxx() calls.
|
|
|
306fa1 |
|
|
|
306fa1 |
25/07/2012 autofs-5.0.7
|
|
|
306fa1 |
=======================
|
|
|
306fa1 |
--- autofs-5.0.7.orig/daemon/automount.c
|
|
|
306fa1 |
+++ autofs-5.0.7/daemon/automount.c
|
|
|
306fa1 |
@@ -981,7 +981,7 @@ static int set_log_priority(const char *
|
|
|
306fa1 |
* Specify O_NONBLOCK so that the open will fail if there is no
|
|
|
306fa1 |
* daemon reading from the other side of the FIFO.
|
|
|
306fa1 |
*/
|
|
|
306fa1 |
- fd = open(fifo_name, O_WRONLY|O_NONBLOCK);
|
|
|
306fa1 |
+ fd = open_fd(fifo_name, O_WRONLY|O_NONBLOCK);
|
|
|
306fa1 |
if (fd < 0) {
|
|
|
306fa1 |
fprintf(stderr, "%s: open of %s failed with %s\n",
|
|
|
306fa1 |
__FUNCTION__, fifo_name, strerror(errno));
|
|
|
306fa1 |
--- autofs-5.0.7.orig/lib/mounts.c
|
|
|
306fa1 |
+++ autofs-5.0.7/lib/mounts.c
|
|
|
306fa1 |
@@ -222,7 +222,7 @@ int check_nfs_mount_version(struct nfs_m
|
|
|
306fa1 |
char *s_ver;
|
|
|
306fa1 |
int cancel_state;
|
|
|
306fa1 |
|
|
|
306fa1 |
- if (pipe(pipefd))
|
|
|
306fa1 |
+ if (open_pipe(pipefd))
|
|
|
306fa1 |
return -1;
|
|
|
306fa1 |
|
|
|
306fa1 |
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cancel_state);
|