>From 8159821c1f253fde4132c08eb8a39507ce38fd03 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jsynacek@redhat.com>
Date: Fri, 12 Sep 2014 11:10:44 +0200
Subject: [PATCH v2] sysctl: correctly normalize prefix

---
 src/sysctl/sysctl.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index 8ce9870..4454c8f 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -256,12 +256,7 @@ static int parse_argv(int argc, char *argv[]) {
                         return 0;
 
                 case ARG_PREFIX: {
-                        char *p;
-
-                        for (p = optarg; *p; p++)
-                                if (*p == '.')
-                                        *p = '/';
-
+                        optarg = normalize_sysctl(optarg);
                         if (strv_extend(&arg_prefixes, optarg) < 0)
                                 return log_oom();
 
-- 
1.9.3

