Reverse safe_arg()'s backslash escaping of a daemon option arg, the way a * remote shell un-escapes args for the ssh transport. In place; \X -> X. */
| 1295 | /* Reverse safe_arg()'s backslash escaping of a daemon option arg, the way a |
| 1296 | * remote shell un-escapes args for the ssh transport. In place; \X -> X. */ |
| 1297 | static void unbackslash_arg(char *s) |
| 1298 | { |
| 1299 | char *f = s, *t = s; |
| 1300 | while (*f) { |
| 1301 | if (*f == '\\' && f[1]) |
| 1302 | f++; |
| 1303 | *t++ = *f++; |
| 1304 | } |
| 1305 | *t = '\0'; |
| 1306 | } |
| 1307 | |
| 1308 | void read_args(int f_in, char *mod_name, char *buf, size_t bufsiz, int rl_nulls, |
| 1309 | int unescape, char ***argv_p, int *argc_p, char **request_p) |