]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
debug argv for fr_exec_nowait(), too
authorAlan T. DeKok <aland@freeradius.org>
Tue, 14 Apr 2020 18:41:09 +0000 (14:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 14 Apr 2020 18:41:09 +0000 (14:41 -0400)
src/lib/server/exec.c

index 4c5a8889498663d80d9433b50918926ac96e49e5..0b24d1f8d2e544146b8ba2c22f3dbbfbdbab8796 100644 (file)
@@ -707,6 +707,12 @@ int fr_exec_nowait(REQUEST *request, fr_value_box_t *vb, VALUE_PAIR *env_pairs)
        argc = fr_value_box_list_flatten_argv(request, &argv, vb);
        if (argc < 0) return -1;
 
+       if (DEBUG_ENABLED3) {
+               int i;
+
+               for (i = 0; i < argc; i++) RDEBUG3("arg[%d] %s", i, argv[i]);
+       }
+
        pid = fork();
 
        /*
@@ -801,7 +807,7 @@ int fr_exec_wait_start(REQUEST *request, fr_value_box_t *vb, VALUE_PAIR *env_pai
        if (DEBUG_ENABLED3) {
                int i;
 
-               for (i = 0; i < argc; i++) DEBUG3("arg[%d] %s", i, argv[i]);
+               for (i = 0; i < argc; i++) RDEBUG3("arg[%d] %s", i, argv[i]);
        }
 
        if (fd_p) {