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

Collapse All | Expand All

(-)ssh-add.c~ (-2 / +5 lines)
Lines 132-139 Link Here
132
	int ret = -1;
132
	int ret = -1;
133
133
134
	if (stat(filename, &st) < 0) {
134
	if (stat(filename, &st) < 0) {
135
		perror(filename);
135
		if (errno != ENOENT) {
136
		return -1;
136
			perror(filename);
137
			return -1;
138
		} else
139
			return 0;
137
	}
140
	}
138
	/* At first, try empty passphrase */
141
	/* At first, try empty passphrase */
139
	private = key_load_private(filename, "", &comment);
142
	private = key_load_private(filename, "", &comment);

Return to bug 158