|
|
9a499a |
autofs-5.1.7 - remove unused parameter form do_mount_autofs_offset()
|
|
|
9a499a |
|
|
|
9a499a |
From: Ian Kent <raven@themaw.net>
|
|
|
9a499a |
|
|
|
9a499a |
The offset parameter of do_mount_autofs_offset() isn't used.
|
|
|
9a499a |
|
|
|
9a499a |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
9a499a |
---
|
|
|
9a499a |
CHANGELOG | 1 +
|
|
|
9a499a |
lib/mounts.c | 10 ++++------
|
|
|
9a499a |
2 files changed, 5 insertions(+), 6 deletions(-)
|
|
|
9a499a |
|
|
|
9a499a |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
9a499a |
+++ autofs-5.1.4/CHANGELOG
|
|
|
9a499a |
@@ -9,6 +9,7 @@
|
|
|
9a499a |
- simplify cache_get_parent().
|
|
|
9a499a |
- set offset parent in update_offset_entry().
|
|
|
9a499a |
- remove redundant variables from mount_autofs_offset().
|
|
|
9a499a |
+- remove unused parameter form do_mount_autofs_offset().
|
|
|
9a499a |
|
|
|
9a499a |
xx/xx/2018 autofs-5.1.5
|
|
|
9a499a |
- fix flag file permission.
|
|
|
9a499a |
--- autofs-5.1.4.orig/lib/mounts.c
|
|
|
9a499a |
+++ autofs-5.1.4/lib/mounts.c
|
|
|
9a499a |
@@ -2466,9 +2466,7 @@ out:
|
|
|
9a499a |
}
|
|
|
9a499a |
|
|
|
9a499a |
static int do_mount_autofs_offset(struct autofs_point *ap,
|
|
|
9a499a |
- struct mapent *oe, const char *root,
|
|
|
9a499a |
- char *offset)
|
|
|
9a499a |
-
|
|
|
9a499a |
+ struct mapent *oe, const char *root)
|
|
|
9a499a |
{
|
|
|
9a499a |
int mounted = 0;
|
|
|
9a499a |
int ret;
|
|
|
9a499a |
@@ -2523,7 +2521,7 @@ int mount_multi_triggers(struct autofs_p
|
|
|
9a499a |
if (!oe || !oe->mapent)
|
|
|
9a499a |
goto cont;
|
|
|
9a499a |
|
|
|
9a499a |
- mounted += do_mount_autofs_offset(ap, oe, root, offset);
|
|
|
9a499a |
+ mounted += do_mount_autofs_offset(ap, oe, root);
|
|
|
9a499a |
|
|
|
9a499a |
/*
|
|
|
9a499a |
* If re-constructing a multi-mount it's necessary to walk
|
|
|
9a499a |
@@ -2660,7 +2658,7 @@ int umount_multi_triggers(struct autofs_
|
|
|
9a499a |
*/
|
|
|
9a499a |
ret = rmdir_path_offset(ap, oe);
|
|
|
9a499a |
if (ret == -1 && !stat(oe->key, &st)) {
|
|
|
9a499a |
- ret = do_mount_autofs_offset(ap, oe, root, offset);
|
|
|
9a499a |
+ ret = do_mount_autofs_offset(ap, oe, root);
|
|
|
9a499a |
if (ret)
|
|
|
9a499a |
left++;
|
|
|
9a499a |
/* But we did origianlly create this */
|
|
|
9a499a |
@@ -2841,7 +2839,7 @@ int clean_stale_multi_triggers(struct au
|
|
|
9a499a |
*/
|
|
|
9a499a |
ret = rmdir_path_offset(ap, oe);
|
|
|
9a499a |
if (ret == -1 && !stat(oe->key, &st)) {
|
|
|
9a499a |
- ret = do_mount_autofs_offset(ap, oe, root, offset);
|
|
|
9a499a |
+ ret = do_mount_autofs_offset(ap, oe, root);
|
|
|
9a499a |
if (ret) {
|
|
|
9a499a |
left++;
|
|
|
9a499a |
/* But we did origianlly create this */
|