|
|
49b67f |
autofs-5.1.7 - simplify mount_subtree() mount check
|
|
|
49b67f |
|
|
|
49b67f |
From: Ian Kent <raven@themaw.net>
|
|
|
49b67f |
|
|
|
49b67f |
The check of the return from sun_mount() following the possible mount
|
|
|
49b67f |
of the root offset in mount_subtree() can be simpler.
|
|
|
49b67f |
|
|
|
49b67f |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
49b67f |
---
|
|
|
49b67f |
CHANGELOG | 1 +
|
|
|
49b67f |
modules/parse_sun.c | 10 +---------
|
|
|
49b67f |
2 files changed, 2 insertions(+), 9 deletions(-)
|
|
|
49b67f |
|
|
|
49b67f |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
49b67f |
+++ autofs-5.1.4/CHANGELOG
|
|
|
49b67f |
@@ -12,6 +12,7 @@
|
|
|
49b67f |
- remove unused parameter form do_mount_autofs_offset().
|
|
|
49b67f |
- refactor umount_multi_triggers().
|
|
|
49b67f |
- eliminate clean_stale_multi_triggers().
|
|
|
49b67f |
+- simplify mount_subtree() mount check.
|
|
|
49b67f |
|
|
|
49b67f |
xx/xx/2018 autofs-5.1.5
|
|
|
49b67f |
- fix flag file permission.
|
|
|
49b67f |
--- autofs-5.1.4.orig/modules/parse_sun.c
|
|
|
49b67f |
+++ autofs-5.1.4/modules/parse_sun.c
|
|
|
49b67f |
@@ -1205,15 +1205,7 @@ static int mount_subtree(struct autofs_p
|
|
|
49b67f |
free(ro_loc);
|
|
|
49b67f |
}
|
|
|
49b67f |
|
|
|
49b67f |
- if (ro && rv == 0) {
|
|
|
49b67f |
- ret = mount_multi_triggers(ap, me, mm_root, start, mm_base);
|
|
|
49b67f |
- if (ret == -1) {
|
|
|
49b67f |
- error(ap->logopt, MODPREFIX
|
|
|
49b67f |
- "failed to mount offset triggers");
|
|
|
49b67f |
- cleanup_multi_triggers(ap, me, mm_root, start, mm_base);
|
|
|
49b67f |
- return 1;
|
|
|
49b67f |
- }
|
|
|
49b67f |
- } else if (rv <= 0) {
|
|
|
49b67f |
+ if ((ro && rv == 0) || rv <= 0) {
|
|
|
49b67f |
ret = mount_multi_triggers(ap, me, mm_root, start, mm_base);
|
|
|
49b67f |
if (ret == -1) {
|
|
|
49b67f |
error(ap->logopt, MODPREFIX
|