Bugzilla – Attachment 45 Details for
Bug 158
ssh-add trips up due to missing key types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
this patch just affects the 'default keys'
U (text/plain), 871 bytes, created by
Markus Friedl
on 2002-03-17 04:45:36 AEDT
(
hide
)
Description:
this patch just affects the 'default keys'
Filename:
MIME Type:
Creator:
Markus Friedl
Created:
2002-03-17 04:45:36 AEDT
Size:
871 bytes
patch
obsolete
>Index: ssh-add.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/ssh-add.c,v >retrieving revision 1.50 >diff -u -r1.50 ssh-add.c >--- ssh-add.c 29 Jan 2002 14:27:57 -0000 1.50 >+++ ssh-add.c 16 Mar 2002 17:43:22 -0000 >@@ -300,6 +300,8 @@ > if (argc == 0) { > char buf[MAXPATHLEN]; > struct passwd *pw; >+ struct stat st; >+ int count = 0; > > if ((pw = getpwuid(getuid())) == NULL) { > fprintf(stderr, "No user found with uid %u\n", >@@ -311,9 +313,15 @@ > for(i = 0; default_files[i]; i++) { > snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir, > default_files[i]); >+ if (stat(buf, &st) < 0) >+ continue; > if (do_file(ac, deleting, buf) == -1) > ret = 1; >+ else >+ count++ > } >+ if (count == 0) >+ ret = 1; > } else { > for(i = 0; i < argc; i++) { > if (do_file(ac, deleting, argv[i]) == -1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 158
:
38
|
39
| 45 |
49