aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2010-07-26 17:12:34 -0400
committerBill Nottingham <notting@redhat.com>2010-07-26 17:12:34 -0400
commitfd9fb8a58b6c457ff84b3dfbe770e6e965491d36 (patch)
tree91da350ee3f8c52b81d3fc335203288c9d893aad
parent8e41788419eb4cce5d2e094761c6fb39fe95501a (diff)
downloadinitscripts-fd9fb8a58b6c457ff84b3dfbe770e6e965491d36.tar
initscripts-fd9fb8a58b6c457ff84b3dfbe770e6e965491d36.tar.gz
initscripts-fd9fb8a58b6c457ff84b3dfbe770e6e965491d36.tar.bz2
initscripts-fd9fb8a58b6c457ff84b3dfbe770e6e965491d36.tar.xz
initscripts-fd9fb8a58b6c457ff84b3dfbe770e6e965491d36.zip
rename_device: dequote DEVICE="eth0"
-rw-r--r--src/rename_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rename_device.c b/src/rename_device.c
index 804c8433..01404f06 100644
--- a/src/rename_device.c
+++ b/src/rename_device.c
@@ -161,7 +161,7 @@ struct netdev *get_configs() {
lines = g_strsplit(contents,"\n", 0);
for (i = 0; lines[i]; i++) {
if (g_str_has_prefix(lines[i],"DEVICE=")) {
- devname = lines[i] + 7;
+ devname = dequote(lines[i] + 7, NULL);
/* ignore alias devices */
if (strchr(devname,':'))
devname = NULL;