44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
|
autofs-5.1.8 - fix return status of mount_autofs()
|
||
|
|
||
|
From: Ian Kent <raven@themaw.net>
|
||
|
|
||
|
The function mount_autofs() collects the status of mounting an autofs
|
||
|
file system but doesn't actually return it.
|
||
|
|
||
|
Signed-off-by: Ian Kent <raven@themaw.net>
|
||
|
---
|
||
|
CHANGELOG | 1 +
|
||
|
daemon/automount.c | 4 ++--
|
||
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
||
|
|
||
|
--- autofs-5.1.4.orig/CHANGELOG
|
||
|
+++ autofs-5.1.4/CHANGELOG
|
||
|
@@ -108,6 +108,7 @@
|
||
|
- fail on empty replicated host name.
|
||
|
- improve handling of ENOENT in sss setautomntent().
|
||
|
- don't immediately call function when waiting.
|
||
|
+- fix return status of mount_autofs().
|
||
|
|
||
|
xx/xx/2018 autofs-5.1.5
|
||
|
- fix flag file permission.
|
||
|
--- autofs-5.1.4.orig/daemon/automount.c
|
||
|
+++ autofs-5.1.4/daemon/automount.c
|
||
|
@@ -1217,7 +1217,7 @@ static int autofs_init_ap(struct autofs_
|
||
|
|
||
|
static int mount_autofs(struct autofs_point *ap, const char *root)
|
||
|
{
|
||
|
- int status = 0;
|
||
|
+ int status;
|
||
|
|
||
|
/* No need to create comms fds and command fifo if
|
||
|
* unlinking mounts and exiting.
|
||
|
@@ -1239,7 +1239,7 @@ static int mount_autofs(struct autofs_po
|
||
|
|
||
|
st_add_task(ap, ST_READY);
|
||
|
|
||
|
- return 0;
|
||
|
+ return status;
|
||
|
}
|
||
|
|
||
|
static int handle_packet(struct autofs_point *ap)
|