View | Details | Raw Unified | Return to bug 2481 | Differences between
and this patch

Collapse All | Expand All

(-)a/ssh.c (-3 / +6 lines)
Lines 714-726 main(int ac, char **av) Link Here
714
			options.gss_deleg_creds = 1;
714
			options.gss_deleg_creds = 1;
715
			break;
715
			break;
716
		case 'i':
716
		case 'i':
717
			if (stat(optarg, &st) < 0) {
717
			p = tilde_expand_filename(optarg, original_real_uid);
718
			if (stat(p, &st) < 0) {
718
				fprintf(stderr, "Warning: Identity file %s "
719
				fprintf(stderr, "Warning: Identity file %s "
719
				    "not accessible: %s.\n", optarg,
720
				    "not accessible: %s.\n", p,
720
				    strerror(errno));
721
				    strerror(errno));
722
				free(p);
721
				break;
723
				break;
722
			}
724
			}
723
			add_identity_file(&options, NULL, optarg, 1);
725
			add_identity_file(&options, NULL, p, 1);
726
			free(p);
724
			break;
727
			break;
725
		case 'I':
728
		case 'I':
726
#ifdef ENABLE_PKCS11
729
#ifdef ENABLE_PKCS11

Return to bug 2481