aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--initscripts.spec5
-rw-r--r--src/usernetctl.c7
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';
}