diff options
Diffstat (limited to 'src/usernetctl.c')
-rw-r--r-- | src/usernetctl.c | 7 |
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'; } |