summaryrefslogtreecommitdiff
path: root/debian/patches/procfs-0004-procfs-do-not-test-whether-hurd-mtab-exists.patch
blob: 9fc702b5c00483084a35ddf3f2dd512917672278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 736f7a36161800e20c30045e4eb898196e4b0027 Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Fri, 19 Sep 2014 08:18:33 +0200
Subject: [PATCH 4/7] 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.
---
 procfs/rootdir.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index f92e73d..81e36f7 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,
     }
   },
   {
-- 
2.1.0