Bugzilla – Attachment 2731 Details for
Bug 2481
Tilde expansion in -i option inconsistent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Expand tildes for arguments passed to -i.
openssh-identityfile_tilde.patch (text/plain), 605 bytes, created by
Darren Tucker
on 2015-10-22 09:49:02 AEDT
(
hide
)
Description:
Expand tildes for arguments passed to -i.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2015-10-22 09:49:02 AEDT
Size:
605 bytes
patch
obsolete
>diff --git a/ssh.c b/ssh.c >index de4e615..5d5711f 100644 >--- a/ssh.c >+++ b/ssh.c >@@ -714,13 +714,16 @@ main(int ac, char **av) > options.gss_deleg_creds = 1; > break; > case 'i': >- if (stat(optarg, &st) < 0) { >+ cp = tilde_expand_filename(optarg, original_real_uid); >+ if (stat(cp, &st) < 0) { > fprintf(stderr, "Warning: Identity file %s " >- "not accessible: %s.\n", optarg, >+ "not accessible: %s.\n", cp, > strerror(errno)); >+ free(cp); > break; > } > add_identity_file(&options, NULL, optarg, 1); >+ free(cp); > break; > case 'I': > #ifdef ENABLE_PKCS11
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 2481
:
2731
|
2732