From 7e22a4ff25d323f75e9ae8bdb1764b7961d2f7c4 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Wed, 1 Oct 1997 00:18:46 +0000 Subject: Only compare variable name, not entire string. --- src/usernetctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usernetctl.c b/src/usernetctl.c index 453bc741..81401dae 100644 --- a/src/usernetctl.c +++ b/src/usernetctl.c @@ -90,7 +90,7 @@ int userCtl(char * file) { while (chptr > contents && isspace(*chptr)) chptr--; *(++chptr) = '\0'; - if (!strcmp(contents, "USERCTL=")) { + if (!strncmp(contents, "USERCTL=", 8)) { if (!strcmp(contents+8, "yes")) return FOUND_TRUE; else return FOUND_FALSE; } -- cgit v1.2.1