search for: parse_dest_constraint_hop

Displaying 1 result from an estimated 1 matches for "parse_dest_constraint_hop".

2024 Sep 05
1
[PATCH] ssh-add: Support '@' in the user part of destination constraints
...l. Ok? Index: ssh-add.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/ssh-add.c,v retrieving revision 1.172 diff -u -p -r1.172 ssh-add.c --- ssh-add.c 11 Jan 2024 01:45:36 -0000 1.172 +++ ssh-add.c 19 Aug 2024 23:35:16 -0000 @@ -691,7 +691,7 @@ parse_dest_constraint_hop(const char *s, memset(dch, '\0', sizeof(*dch)); os = xstrdup(s); - if ((host = strchr(os, '@')) == NULL) + if ((host = strrchr(os, '@')) == NULL) host = os; else { *host++ = '\0';