mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-09-21 08:58:17 +02:00
- dtucker@cvs.openbsd.org 2004/08/23 14:29:23
[ssh-keysign.c] Remove duplicate getuid(), suggested by & ok markus@
This commit is contained in:
parent
27a8f6b056
commit
34620d6f71
@ -13,6 +13,9 @@
|
|||||||
[ssh-keysign.c ssh.c]
|
[ssh-keysign.c ssh.c]
|
||||||
Use permanently_set_uid() in ssh and ssh-keysign for consistency, matches
|
Use permanently_set_uid() in ssh and ssh-keysign for consistency, matches
|
||||||
change in Portable; ok markus@ (CVS ID sync only)
|
change in Portable; ok markus@ (CVS ID sync only)
|
||||||
|
- dtucker@cvs.openbsd.org 2004/08/23 14:29:23
|
||||||
|
[ssh-keysign.c]
|
||||||
|
Remove duplicate getuid(), suggested by & ok markus@
|
||||||
|
|
||||||
20040828
|
20040828
|
||||||
- (dtucker) [openbsd-compat/mktemp.c] Remove superfluous Cygwin #ifdef; from
|
- (dtucker) [openbsd-compat/mktemp.c] Remove superfluous Cygwin #ifdef; from
|
||||||
@ -1680,4 +1683,4 @@
|
|||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3525 2004/08/29 06:31:28 dtucker Exp $
|
$Id: ChangeLog,v 1.3526 2004/08/29 06:32:59 dtucker Exp $
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: ssh-keysign.c,v 1.17 2004/08/23 14:26:38 dtucker Exp $");
|
RCSID("$OpenBSD: ssh-keysign.c,v 1.18 2004/08/23 14:29:23 dtucker Exp $");
|
||||||
|
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
@ -151,7 +151,8 @@ main(int argc, char **argv)
|
|||||||
key_fd[0] = open(_PATH_HOST_RSA_KEY_FILE, O_RDONLY);
|
key_fd[0] = open(_PATH_HOST_RSA_KEY_FILE, O_RDONLY);
|
||||||
key_fd[1] = open(_PATH_HOST_DSA_KEY_FILE, O_RDONLY);
|
key_fd[1] = open(_PATH_HOST_DSA_KEY_FILE, O_RDONLY);
|
||||||
|
|
||||||
if ((pw = getpwuid(getuid())) == NULL)
|
original_real_uid = getuid(); /* XXX readconf.c needs this */
|
||||||
|
if ((pw = getpwuid(original_real_uid)) == NULL)
|
||||||
fatal("getpwuid failed");
|
fatal("getpwuid failed");
|
||||||
pw = pwcopy(pw);
|
pw = pwcopy(pw);
|
||||||
|
|
||||||
@ -166,7 +167,6 @@ main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* verify that ssh-keysign is enabled by the admin */
|
/* verify that ssh-keysign is enabled by the admin */
|
||||||
original_real_uid = getuid(); /* XXX readconf.c needs this */
|
|
||||||
initialize_options(&options);
|
initialize_options(&options);
|
||||||
(void)read_config_file(_PATH_HOST_CONFIG_FILE, "", &options, 0);
|
(void)read_config_file(_PATH_HOST_CONFIG_FILE, "", &options, 0);
|
||||||
fill_default_options(&options);
|
fill_default_options(&options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user