aboutsummaryrefslogtreecommitdiffstats
path: root/src/usernetctl.c
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1997-10-01 00:18:46 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1997-10-01 00:18:46 +0000
commit7e22a4ff25d323f75e9ae8bdb1764b7961d2f7c4 (patch)
tree6669deafe28fe9a8407118a359e898b6126c5a01 /src/usernetctl.c
parent50e372bfafede213d31d662abe923f667db61e15 (diff)
downloadinitscripts-7e22a4ff25d323f75e9ae8bdb1764b7961d2f7c4.tar
initscripts-7e22a4ff25d323f75e9ae8bdb1764b7961d2f7c4.tar.gz
initscripts-7e22a4ff25d323f75e9ae8bdb1764b7961d2f7c4.tar.bz2
initscripts-7e22a4ff25d323f75e9ae8bdb1764b7961d2f7c4.tar.xz
initscripts-7e22a4ff25d323f75e9ae8bdb1764b7961d2f7c4.zip
Only compare variable name, not entire string.
Diffstat (limited to 'src/usernetctl.c')
-rw-r--r--src/usernetctl.c2
1 files changed, 1 insertions, 1 deletions
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;
}