summaryrefslogtreecommitdiff
path: root/procfs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-09-19 08:18:33 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-09-29 12:39:30 +0200
commit1fb3542ef83f01e913d9944b093de8d5c178e5d7 (patch)
tree14fc9a6e771b4bc2b36bd7604dda910de902c062 /procfs
parentb288ae932a53133c986e5daace2d5bfa4cf95d2c (diff)
procfs: do not test whether /hurd/mtab exists
Now that procfs is merged into the Hurd repository we can just assume that the mtab translator exists. * procfs/rootdir.c (rootdir_mounts_exists): Drop function. (rootdir_entries): Adjust accordingly.
Diffstat (limited to 'procfs')
-rw-r--r--procfs/rootdir.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index f92e73d2..81e36f7e 100644
--- a/procfs/rootdir.c
+++ b/procfs/rootdir.c
@@ -463,15 +463,6 @@ rootdir_mounts_get_translator (void *hook, char **argz, size_t *argz_len)
return 0;
}
-static int
-rootdir_mounts_exists (void *dir_hook, const void *entry_hook)
-{
- static int translator_exists = -1;
- if (translator_exists == -1)
- translator_exists = access (_HURD_MTAB, F_OK|X_OK) == 0;
- return translator_exists;
-}
-
static error_t
rootdir_gc_slabinfo (void *hook, char **contents, ssize_t *contents_len)
{
@@ -674,7 +665,6 @@ static const struct procfs_dir_entry rootdir_entries[] = {
},
.ops = {
.make_node = rootdir_mounts_make_node,
- .exists = rootdir_mounts_exists,
}
},
{