aboutsummaryrefslogtreecommitdiff
path: root/arch/linux/common/nfs.h
diff options
context:
space:
mode:
authorSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 15:19:47 -0500
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 15:19:47 -0500
commit7aacc9f2510901c9e97b30fa9bcb550bb7f99c03 (patch)
tree16908948750c11da8332d80d8bb9b339399ee4d7 /arch/linux/common/nfs.h
parent7c47b5b9584f5011aeba18d7e1b26b3d3124825f (diff)
New upstream version 0.5.1+git20170605
Diffstat (limited to 'arch/linux/common/nfs.h')
-rw-r--r--arch/linux/common/nfs.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/linux/common/nfs.h b/arch/linux/common/nfs.h
deleted file mode 100644
index 5ae22797..00000000
--- a/arch/linux/common/nfs.h
+++ /dev/null
@@ -1,29 +0,0 @@
-static gchar *nfs_shares_list = NULL;
-void
-scan_nfs_shared_directories(void)
-{
- FILE *exports;
- gchar buf[512];
-
- if (nfs_shares_list) {
- g_free(nfs_shares_list);
- }
-
- nfs_shares_list = g_strdup("");
-
- exports = fopen("/etc/exports", "r");
- if (!exports)
- return;
-
- while (fgets(buf, 512, exports)) {
- if (buf[0] != '/')
- continue;
-
- strend(buf, ' ');
- strend(buf, '\t');
-
- nfs_shares_list = g_strconcat(nfs_shares_list, buf, "=\n", NULL);
- }
- fclose(exports);
-}
-