null_fd = open("/dev/null", O_WRONLY);
if (null_fd > 0) {
close(STDERR_FILENO);
- dup(null_fd);
+ retval = dup(null_fd);
close(null_fd);
}
if (status == 0)
retval = 0;
else
- condlog(0, "%s exitted with %d", argv[0], status);
+ condlog(0, "%s exited with %d", argv[0], status);
}
else if (WIFSIGNALED(status))
condlog(0, "%s was terminated by signal %d", argv[0], WTERMSIG(status));
}
pos++;
- if (!*pos)
+ if (!*pos) {
+ condlog(3, "formatted callout = %s", dst);
return 0;
+ }
len = strlen(pos) + 1;
myfree -= len;
return 1;
snprintf(p, len, "%s", pos);
- condlog(3, "reformated callout = %s", dst);
+ condlog(3, "reformatted callout = %s", dst);
return 0;
}
-