version 1.37, 2006/03/25 13:17:02 |
version 1.38, 2006/06/06 10:20:20 |
|
|
#include "pathnames.h" |
#include "pathnames.h" |
#include "log.h" |
#include "log.h" |
#include "ssh.h" |
#include "ssh.h" |
|
#include "uidswap.h" |
|
|
static char * |
static char * |
ssh_askpass(char *askpass, const char *msg) |
ssh_askpass(char *askpass, const char *msg) |
|
|
return NULL; |
return NULL; |
} |
} |
if (pid == 0) { |
if (pid == 0) { |
seteuid(getuid()); |
permanently_set_uid(getpwuid(getuid())); |
setuid(getuid()); |
|
close(p[0]); |
close(p[0]); |
if (dup2(p[1], STDOUT_FILENO) < 0) |
if (dup2(p[1], STDOUT_FILENO) < 0) |
fatal("ssh_askpass: dup2: %s", strerror(errno)); |
fatal("ssh_askpass: dup2: %s", strerror(errno)); |