Red Hat Bugzilla – Bug 8965
How does linuxconf stores string values ?
Last modified: 2008-05-01 11:37:54 EDT
I wanted to stop bringing up the "eth0" interface during
startup. So I used linuxconf and it essentially updated
the file "/etc/sysconfig/network-scripts/ifcfg-eth0".
Now the interesting thing is, all the parameters are now
inside quoted string, which was the default case. For
before using linuxconf
after using linuxconf
Of course this is not a problem as long as shell scripts
can read the config file correctly. But the situation
will be different if a C of Java program wants to read the
values as strings. Is it not a potential problem ?
These are shell-style configuration files, meant to be sourced by other shell
scripts. This means that spaces, punctuation marks, and other oddities need to
be quoted. A tool that tries to read these files but doesn't properly parse
shell quotes (ugly as they are) is therefore buggy.