valgrind freaked out on some weird old code

This commit is contained in:
albert
2005-01-24 03:37:41 +00:00
parent 0908258da6
commit 37b9b9a235
3 changed files with 16 additions and 1 deletions

View File

@@ -478,6 +478,15 @@ static const char *parse_sysv_option(void){
trace("-z shows aliased MAC info\n");
format_modifiers |= FM_M;
break;
// Solaris 10 does this
case 'z': /* select by zone */
trace("-z secects by zone\n");
arg=get_opt_arg();
if(!arg) return "List of zones (contexts, labels, whatever?) must follow -z.";
err=parse_list(arg, parse_zone);
if(err) return err;
selection_list->typecode = SEL_ZONE;
return NULL; /* can't have any more options */
#endif
case '-':
return "Embedded '-' among SysV options makes no sense.";