version 1.173, 2009/10/24 11:13:54 |
version 1.174, 2009/11/10 04:30:45 |
|
|
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
#include <errno.h> |
#include <errno.h> |
|
#include <fcntl.h> |
#include <netdb.h> |
#include <netdb.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
|
|
return -1; |
return -1; |
} |
} |
if (pid == 0) { |
if (pid == 0) { |
|
/* keep the socket on exec */ |
|
fcntl(packet_get_connection_in(), F_SETFD, 0); |
permanently_drop_suid(getuid()); |
permanently_drop_suid(getuid()); |
close(from[0]); |
close(from[0]); |
if (dup2(from[1], STDOUT_FILENO) < 0) |
if (dup2(from[1], STDOUT_FILENO) < 0) |