[systemd-devel] [PATCH] sysctl: don't replace dots with slashes in prefix

Jan Synacek jsynacek at redhat.com
Fri Sep 12 02:21:41 PDT 2014


The prefix is always tested against normalized property names.
---
 src/sysctl/sysctl.c | 6 ------
 1 file changed, 6 deletions(-)

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



More information about the systemd-devel mailing list