From b8528b0044f81062c3bfe71fd29bf9b9e68c669a Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 15 Mar 2002 11:14:27 +0000 Subject: fix usernetctl for working with neat --- initscripts.spec | 5 ++++- 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 6.58-1 +- fix usernetctl for working with neat + * Thu Mar 14 2002 Bill Nottingham 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'; } -- cgit v1.2.1