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. */
| 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. */ |
| 1322 | static 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 | |
| 1336 | char *alt_dest_opt(int type) |
| 1337 | { |
no test coverage detected