chiark / gitweb /
sysctl: consider --prefix while parsing the files
authorUmut Tezduyar Lindskog <umut.tezduyar@axis.com>
Sat, 7 Feb 2015 13:12:41 +0000 (14:12 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 Feb 2015 17:19:37 +0000 (12:19 -0500)
commitb99802f769f9c0a5c2bc94e59ed43279492daa04
tree3cbd5cc1afb1bdd64e477a1d4c5f1ca3dc08f2fb
parent2a7e23fbba3a42265c49e62404ab3f9ed25bc9b7
sysctl: consider --prefix while parsing the files

not while applying the parsed sysctl values. Otherwise
info "Overwriting earlier assignment of %s in file %s" is
visible many times even though the given --prefix doesn't
try to set the overridden value.

This also optimizes the startup tiny bit since we have udev
rules running on network devices and setting sysctl through
the rules.
src/sysctl/sysctl.c