Log the full process path, rather than the MAXCOMLEN-max process name.

This commit is contained in:
Landon Fuller 2014-10-18 02:34:46 -06:00
parent 55e8da7653
commit bcc74385ab

4
nat.c
View File

@ -194,8 +194,8 @@ nat_pf_lookup_proc(struct sockaddr *dst_addr, socklen_t *dst_addrlen,
}
// TODO
char name[128];
proc_name(pid, name, sizeof(name));
char name[MAXPATHLEN];
proc_pidpath(pid, name, sizeof(name));
log_err_printf("Matched socket to process %s\n", name);
free(pids);