diff options
author | Harald Hoyer <harald@redhat.com> | 2010-07-26 17:12:29 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-07-26 17:12:29 -0400 |
commit | 7c02171fc48aa5dcac7f18608ac33acce2b2d6a2 (patch) | |
tree | 5fc18867b4094632773b2f887d7c8fd1739e8c6b /src | |
parent | 2f96a39bbba60dd1697e2ee4b0a99f1f34df5df3 (diff) | |
download | initscripts-7c02171fc48aa5dcac7f18608ac33acce2b2d6a2.tar initscripts-7c02171fc48aa5dcac7f18608ac33acce2b2d6a2.tar.gz initscripts-7c02171fc48aa5dcac7f18608ac33acce2b2d6a2.tar.bz2 initscripts-7c02171fc48aa5dcac7f18608ac33acce2b2d6a2.tar.xz initscripts-7c02171fc48aa5dcac7f18608ac33acce2b2d6a2.zip |
rename_device: dequote DEVICE="eth0"
Diffstat (limited to 'src')
-rw-r--r-- | src/rename_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rename_device.c b/src/rename_device.c index 197fbdb3..3cd25e1e 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; |