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.7.orig/CHANGELOG
|
||
|
+++ autofs-5.1.7/CHANGELOG
|
||
|
@@ -115,6 +115,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().
|
||
|
|
||
|
25/01/2021 autofs-5.1.7
|
||
|
- make bind mounts propagation slave by default.
|
||
|
--- autofs-5.1.7.orig/daemon/automount.c
|
||
|
+++ autofs-5.1.7/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)
|