Bugzilla – Attachment 49 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]
Previous patch is missing a semicolon
PATCH_2 (text/plain), 686 bytes, created by
William Knox
on 2002-03-20 03:11:41 AEDT
(
hide
)
Description:
Previous patch is missing a semicolon
Filename:
MIME Type:
Creator:
William Knox
Created:
2002-03-20 03:11:41 AEDT
Size:
686 bytes
patch
obsolete
>--- ssh-add.c~ Mon Feb 4 20:12:50 2002 >+++ ssh-add.c Tue Mar 19 10:52:36 2002 >@@ -310,6 +310,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", >@@ -321,9 +323,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