Blame SOURCES/autofs-5.1.5-remove-unused-function-has_fstab_option.patch

304803
autofs-5.1.5 - remove unused function has_fstab_option()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
This function is not used, remove it.
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG        |    1 +
304803
 include/mounts.h |    1 -
304803
 lib/mounts.c     |   29 -----------------------------
304803
 3 files changed, 1 insertion(+), 30 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -329,6 +329,7 @@
304803
 - allow period following macro in selector value.
304803
 - fix macro expansion in selector values.
304803
 - fix reset flex scan buffer on init.
304803
+- remove unused function has_fstab_option().
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/include/mounts.h
304803
+++ autofs-5.0.7/include/mounts.h
304803
@@ -103,7 +103,6 @@ struct mnt_list *get_mnt_list(const char
304803
 struct mnt_list *reverse_mnt_list(struct mnt_list *list);
304803
 void free_mnt_list(struct mnt_list *list);
304803
 int is_mounted(const char *table, const char *path, unsigned int type);
304803
-int has_fstab_option(const char *opt);
304803
 void tree_free_mnt_tree(struct mnt_list *tree);
304803
 struct mnt_list *tree_make_mnt_tree(const char *table, const char *path);
304803
 int tree_get_mnt_list(struct mnt_list *mnts, struct list_head *list, const char *path, int include);
304803
--- autofs-5.0.7.orig/lib/mounts.c
304803
+++ autofs-5.0.7/lib/mounts.c
304803
@@ -1020,35 +1020,6 @@ int is_mounted(const char *table, const
304803
 		return table_is_mounted(table, path, type);
304803
 }
304803
 
304803
-int has_fstab_option(const char *opt)
304803
-{
304803
-	struct mntent *mnt;
304803
-	struct mntent mnt_wrk;
304803
-	char buf[PATH_MAX * 3];
304803
-	FILE *tab;
304803
-	int ret = 0;
304803
-
304803
-	if (!opt)
304803
-		return 0;
304803
-
304803
-	tab = open_setmntent_r(_PATH_MNTTAB);
304803
-	if (!tab) {
304803
-		char *estr = strerror_r(errno, buf, PATH_MAX - 1);
304803
-		logerr("setmntent: %s", estr);
304803
-		return 0;
304803
-	}
304803
-
304803
-	while ((mnt = getmntent_r(tab, &mnt_wrk, buf, PATH_MAX * 3))) {
304803
-		if (hasmntopt(mnt, opt)) {
304803
-			ret = 1;
304803
-			break;
304803
-		}
304803
-	}
304803
-	endmntent(tab);
304803
-
304803
-	return ret;
304803
-}
304803
-
304803
 /*
304803
  * Since we have to look at the entire mount tree for direct
304803
  * mounts (all mounts under "/") and we may have a large number