diff options
-rw-r--r-- | initscripts.spec | 5 | ||||
-rw-r--r-- | src/usernetctl.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/initscripts.spec b/initscripts.spec index 83f2d35d..d8f0c5e8 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -1,6 +1,6 @@ Summary: The inittab file and the /etc/init.d scripts. Name: initscripts -Version: 6.57 +Version: 6.58 License: GPL Group: System Environment/Base Release: 1 @@ -242,6 +242,9 @@ rm -rf $RPM_BUILD_ROOT %dir /etc/locale/*/LC_MESSAGES %changelog +* Fri Mar 15 2002 Than Ngo <than@redhat.com > 6.58-1 +- fix usernetctl for working with neat + * Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 6.57-1 - update translations 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'; } |