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

Function popt_unalias

options.c:1322–1334  ·  view source on GitHub ↗

This is used to make sure that --daemon & --server cannot be aliased to * something else. These options have always disabled popt aliases for the * parsing of a daemon or server command-line, but we have to make sure that * these options cannot vanish so that the alias disabling can take effect. */

Source from the content-addressed store, hash-verified

1320 * parsing of a daemon or server command-line, but we have to make sure that
1321 * these options cannot vanish so that the alias disabling can take effect. */
1322static void popt_unalias(poptContext con, const char *opt)
1323{
1324 struct poptAlias unalias;
1325
1326 memset(&unalias, 0, sizeof unalias);
1327
1328 unalias.longName = opt + 2; /* point past the leading "--" */
1329 unalias.argc = 1;
1330 unalias.argv = new_array0(const char*, 2);
1331 unalias.argv[0] = strdup(opt);
1332
1333 poptAddAlias(con, unalias, 0);
1334}
1335
1336char *alt_dest_opt(int type)
1337{

Callers 1

parse_argumentsFunction · 0.85

Calls 1

poptAddAliasFunction · 0.85

Tested by

no test coverage detected