diff options
author | Colin Watson <cjwatson@debian.org> | 2008-05-26 09:52:15 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2008-05-26 09:52:15 +0000 |
commit | 5bdf9cddf8c7c9104ecc1b9f0bcae79aa7496bca (patch) | |
tree | cbbba966711d1313ae53962b1d0f0c2816e11137 /ssh-vulnkey.c | |
parent | 7487a077a410826fa48f6a1db33408831b48dd21 (diff) |
Use EUID rather than UID when run with no file names and without -a.
Diffstat (limited to 'ssh-vulnkey.c')
-rw-r--r-- | ssh-vulnkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-vulnkey.c b/ssh-vulnkey.c index 52667199c..df4addf17 100644 --- a/ssh-vulnkey.c +++ b/ssh-vulnkey.c | |||
@@ -343,9 +343,9 @@ main(int argc, char **argv) | |||
343 | if (!do_host(1)) | 343 | if (!do_host(1)) |
344 | ret = 0; | 344 | ret = 0; |
345 | 345 | ||
346 | if ((pw = getpwuid(getuid())) == NULL) | 346 | if ((pw = getpwuid(geteuid())) == NULL) |
347 | fprintf(stderr, "No user found with uid %u\n", | 347 | fprintf(stderr, "No user found with uid %u\n", |
348 | (u_int)getuid()); | 348 | (u_int)geteuid()); |
349 | else { | 349 | else { |
350 | if (!do_user(pw->pw_dir)) | 350 | if (!do_user(pw->pw_dir)) |
351 | ret = 0; | 351 | ret = 0; |