You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
668 B
24 lines
668 B
6 years ago
|
autofs-5.0.7 - fix spawn_umount() return check in mount_bind.c:lookup_init()
|
||
|
|
||
|
From: Ian Kent <raven@themaw.net>
|
||
|
|
||
|
Check return of spawn_umount() and report it if it fails.
|
||
|
---
|
||
|
modules/mount_bind.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/modules/mount_bind.c b/modules/mount_bind.c
|
||
|
index 4975294..d6c6fe7 100644
|
||
|
--- a/modules/mount_bind.c
|
||
|
+++ b/modules/mount_bind.c
|
||
|
@@ -57,7 +57,8 @@ int mount_init(void **context)
|
||
|
bind_works = 1;
|
||
|
}
|
||
|
|
||
|
- spawn_umount(LOGOPT_NONE, "-n", t2_dir, NULL);
|
||
|
+ if (spawn_umount(LOGOPT_NONE, "-n", t2_dir, NULL) != 0)
|
||
|
+ debug(LOGOPT_ANY, MODPREFIX "umount failed for %s", t2_dir);
|
||
|
|
||
|
out:
|
||
|
rmdir(t1_dir);
|