https://bugzilla.mindrot.org/show_bug.cgi?id=2481
Darren Tucker <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Darren Tucker <[email protected]> --- The reason for the discrepancy is that in this case, -i doesn't do tilde expansion, the shell does. It only does it at the start of an argument, and when you combine the arguments like that it doesn't expand: $ echo -i~/bin -i~/bin $ echo -i ~/bin -i /home/dtucker/bin This then falls foul of the file existence check inside the -i handling: case 'i': if (stat(optarg, &st) < 0) { fprintf(stderr, "Warning: Identity file %s " "not accessible: %s.\n", optarg, strerror(errno)); break; } add_identity_file(&options, NULL, optarg, 1); break; and the key doesn't get added before the call to tilde_expand_filename later. We could probably fix this by adding a call to tilde_expand_filename in the -i handling. -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug. _______________________________________________ openssh-bugs mailing list [email protected] https://lists.mindrot.org/mailman/listinfo/openssh-bugs
