|
|
1c5f92 |
autofs-5.1.5 - remove unused function has_fstab_option()
|
|
|
1c5f92 |
|
|
|
1c5f92 |
From: Ian Kent <raven@themaw.net>
|
|
|
1c5f92 |
|
|
|
1c5f92 |
This function is not used, remove it.
|
|
|
1c5f92 |
|
|
|
1c5f92 |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
1c5f92 |
---
|
|
|
1c5f92 |
CHANGELOG | 1 +
|
|
|
1c5f92 |
include/mounts.h | 1 -
|
|
|
1c5f92 |
lib/mounts.c | 29 -----------------------------
|
|
|
1c5f92 |
3 files changed, 1 insertion(+), 30 deletions(-)
|
|
|
1c5f92 |
|
|
|
1c5f92 |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
1c5f92 |
+++ autofs-5.1.4/CHANGELOG
|
|
|
1c5f92 |
@@ -55,6 +55,7 @@ xx/xx/2018 autofs-5.1.5
|
|
|
1c5f92 |
- fix macro expansion in selector values.
|
|
|
1c5f92 |
- also use strictexpire for offsets.
|
|
|
1c5f92 |
- change expire type naming to better reflect usage.
|
|
|
1c5f92 |
+- remove unused function has_fstab_option().
|
|
|
1c5f92 |
|
|
|
1c5f92 |
19/12/2017 autofs-5.1.4
|
|
|
1c5f92 |
- fix spec file url.
|
|
|
1c5f92 |
--- autofs-5.1.4.orig/include/mounts.h
|
|
|
1c5f92 |
+++ autofs-5.1.4/include/mounts.h
|
|
|
1c5f92 |
@@ -103,7 +103,6 @@ struct mnt_list *get_mnt_list(const char
|
|
|
1c5f92 |
struct mnt_list *reverse_mnt_list(struct mnt_list *list);
|
|
|
1c5f92 |
void free_mnt_list(struct mnt_list *list);
|
|
|
1c5f92 |
int is_mounted(const char *table, const char *path, unsigned int type);
|
|
|
1c5f92 |
-int has_fstab_option(const char *opt);
|
|
|
1c5f92 |
void tree_free_mnt_tree(struct mnt_list *tree);
|
|
|
1c5f92 |
struct mnt_list *tree_make_mnt_tree(const char *table, const char *path);
|
|
|
1c5f92 |
int tree_get_mnt_list(struct mnt_list *mnts, struct list_head *list, const char *path, int include);
|
|
|
1c5f92 |
--- autofs-5.1.4.orig/lib/mounts.c
|
|
|
1c5f92 |
+++ autofs-5.1.4/lib/mounts.c
|
|
|
1c5f92 |
@@ -1026,35 +1026,6 @@ int is_mounted(const char *table, const
|
|
|
1c5f92 |
return table_is_mounted(table, path, type);
|
|
|
1c5f92 |
}
|
|
|
1c5f92 |
|
|
|
1c5f92 |
-int has_fstab_option(const char *opt)
|
|
|
1c5f92 |
-{
|
|
|
1c5f92 |
- struct mntent *mnt;
|
|
|
1c5f92 |
- struct mntent mnt_wrk;
|
|
|
1c5f92 |
- char buf[PATH_MAX * 3];
|
|
|
1c5f92 |
- FILE *tab;
|
|
|
1c5f92 |
- int ret = 0;
|
|
|
1c5f92 |
-
|
|
|
1c5f92 |
- if (!opt)
|
|
|
1c5f92 |
- return 0;
|
|
|
1c5f92 |
-
|
|
|
1c5f92 |
- tab = open_setmntent_r(_PATH_MNTTAB);
|
|
|
1c5f92 |
- if (!tab) {
|
|
|
1c5f92 |
- char *estr = strerror_r(errno, buf, PATH_MAX - 1);
|
|
|
1c5f92 |
- logerr("setmntent: %s", estr);
|
|
|
1c5f92 |
- return 0;
|
|
|
1c5f92 |
- }
|
|
|
1c5f92 |
-
|
|
|
1c5f92 |
- while ((mnt = getmntent_r(tab, &mnt_wrk, buf, PATH_MAX * 3))) {
|
|
|
1c5f92 |
- if (hasmntopt(mnt, opt)) {
|
|
|
1c5f92 |
- ret = 1;
|
|
|
1c5f92 |
- break;
|
|
|
1c5f92 |
- }
|
|
|
1c5f92 |
- }
|
|
|
1c5f92 |
- endmntent(tab);
|
|
|
1c5f92 |
-
|
|
|
1c5f92 |
- return ret;
|
|
|
1c5f92 |
-}
|
|
|
1c5f92 |
-
|
|
|
1c5f92 |
/*
|
|
|
1c5f92 |
* Since we have to look at the entire mount tree for direct
|
|
|
1c5f92 |
* mounts (all mounts under "/") and we may have a large number
|