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 --- src/usernetctl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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