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

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