commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 16/30: Make procfs accept none or proc as "device"


From: Samuel Thibault
Subject: [hurd] 16/30: Make procfs accept none or proc as "device"
Date: Tue, 22 Sep 2015 21:51:59 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 2ec3b41b65f1b7ccbe219544fd922db8fe4a0b2f
Author: Samuel Thibault <address@hidden>
Date:   Tue Sep 8 22:15:38 2015 +0200

    Make procfs accept none or proc as "device"
    
    This allows "mount none /proc -t proc" to work.
    
    * procfs/main.c (argp_parser): On ARGP_KEY_ARG, accept and ignore "none" and
    "proc".
---
 procfs/main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/procfs/main.c b/procfs/main.c
index f773c09..509f488 100644
--- a/procfs/main.c
+++ b/procfs/main.c
@@ -130,6 +130,12 @@ argp_parser (int key, char *arg, struct argp_state *state)
       /* Ignored for compatibility with Linux' procfs. */
       break;
 
+    case ARGP_KEY_ARG:
+      if (!strcmp (arg, "none") || !strcmp (arg,"proc"))
+        /* Ignored for compatibility with Linux' procfs. */
+        break;
+      return ARGP_ERR_UNKNOWN;
+
     default:
       return ARGP_ERR_UNKNOWN;
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]