aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2002-03-15 11:14:27 +0000
committerThan Ngo <than@redhat.com>2002-03-15 11:14:27 +0000
commitb8528b0044f81062c3bfe71fd29bf9b9e68c669a (patch)
tree08a9d148b49c7ede6aa6a1cb46cf54f2254b50f2 /src
parentc716b4a899d02ef16e6ec84106fba17a1c8e25b5 (diff)
downloadinitscripts-b8528b0044f81062c3bfe71fd29bf9b9e68c669a.tar
initscripts-b8528b0044f81062c3bfe71fd29bf9b9e68c669a.tar.gz
initscripts-b8528b0044f81062c3bfe71fd29bf9b9e68c669a.tar.bz2
initscripts-b8528b0044f81062c3bfe71fd29bf9b9e68c669a.tar.xz
initscripts-b8528b0044f81062c3bfe71fd29bf9b9e68c669a.zip
fix usernetctl for working with neatr6-58
Diffstat (limited to 'src')
-rw-r--r--src/usernetctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usernetctl.c b/src/usernetctl.c
index 238c0aee..e6bc4a22 100644
--- a/src/usernetctl.c
+++ b/src/usernetctl.c
@@ -94,8 +94,11 @@ userCtl(char *file) {
if (!strncmp(contents, "USERCTL=", 8)) {
contents += 8;
- if (contents[0] == '"' &&
- contents[strlen(contents) - 1] == '"') {
+ if ((contents[0] == '"' &&
+ contents[strlen(contents) - 1] == '"') ||
+ (contents[0] == '\'' &&
+ contents[strlen(contents) - 1] == '\''))
+ {
contents++;
contents[strlen(contents) - 1] = '\0';
}