MCPcopy Index your code
hub / github.com/RsyncProject/rsync / unbackslash_arg

Function unbackslash_arg

io.c:1297–1306  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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. */
1297static 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
1308void 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)

Callers 1

read_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected