version 1.153, 2006/05/08 10:49:48 |
version 1.154, 2006/06/06 10:20:20 |
|
|
#include "canohost.h" |
#include "canohost.h" |
#include "msg.h" |
#include "msg.h" |
#include "pathnames.h" |
#include "pathnames.h" |
|
#include "uidswap.h" |
|
|
#ifdef GSSAPI |
#ifdef GSSAPI |
#include "ssh-gss.h" |
#include "ssh-gss.h" |
|
|
return -1; |
return -1; |
} |
} |
if (pid == 0) { |
if (pid == 0) { |
seteuid(getuid()); |
permanently_set_uid(getpwuid(getuid())); |
setuid(getuid()); |
|
close(from[0]); |
close(from[0]); |
if (dup2(from[1], STDOUT_FILENO) < 0) |
if (dup2(from[1], STDOUT_FILENO) < 0) |
fatal("ssh_keysign: dup2: %s", strerror(errno)); |
fatal("ssh_keysign: dup2: %s", strerror(errno)); |