Skip to content

Instantly share code, notes, and snippets.

@kruton
Last active January 1, 2016 08:49
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kruton/8120594 to your computer and use it in GitHub Desktop.
Fix OpenSSH Apple Keychain getopt
diff --git a/ssh-add.c b/ssh-add.c
index 10c968a..84f24d6 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -457,7 +457,7 @@ main(int argc, char **argv)
"Could not open a connection to your authentication agent.\n");
exit(2);
}
- while ((ch = getopt(argc, argv, "kKlLcdDxXe:s:t:")) != -1) {
+ while ((ch = getopt(argc, argv, "kKlLcdDxXmMe:s:t:")) != -1) {
switch (ch) {
case 'k':
key_only = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment