]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Avoid spurious error about absolute path
authorNick Porter <nick@portercomputing.co.uk>
Mon, 31 Oct 2022 11:06:41 +0000 (11:06 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 31 Oct 2022 11:34:13 +0000 (11:34 +0000)
src/main/command.c

index ea1b40e200981b2eac568406cb16f82f52ab361e..a20df8a6bfb0b534ae2db6cd77768a888724c36e 100644 (file)
@@ -1399,7 +1399,7 @@ static int command_debug_file(rad_listen_t *listener, int argc, char *argv[])
                return -1;
        }
 
-       if ((argc > 0) && (strchr(argv[0], FR_DIR_SEP) != NULL)) {
+       if ((argc > 0) && (strchr(argv[0], FR_DIR_SEP) == argv[0])) {
                cprintf_error(listener, "Cannot direct debug logs to absolute path.\n");
        }