@@ -601,6 +601,8 @@ static int help(int argc, char *argv[], void *userdata) {
601601 " -N Do not synthesize or include glibc NSS data\n"
602602 " (Same as --synthesize=no --with-nss=no)\n"
603603 " --synthesize=BOOL Synthesize root/nobody user\n"
604+ " --with-dropin=BOOL Control whether to include drop-in records\n"
605+ " --with-varlink=BOOL Control whether to talk to services at all\n"
604606 "\nSee the %s for details.\n" ,
605607 program_invocation_short_name ,
606608 ansi_highlight (),
@@ -618,18 +620,22 @@ static int parse_argv(int argc, char *argv[]) {
618620 ARG_NO_LEGEND ,
619621 ARG_OUTPUT ,
620622 ARG_WITH_NSS ,
623+ ARG_WITH_DROPIN ,
624+ ARG_WITH_VARLINK ,
621625 ARG_SYNTHESIZE ,
622626 };
623627
624628 static const struct option options [] = {
625- { "help" , no_argument , NULL , 'h' },
626- { "version" , no_argument , NULL , ARG_VERSION },
627- { "no-pager" , no_argument , NULL , ARG_NO_PAGER },
628- { "no-legend" , no_argument , NULL , ARG_NO_LEGEND },
629- { "output" , required_argument , NULL , ARG_OUTPUT },
630- { "service" , required_argument , NULL , 's' },
631- { "with-nss" , required_argument , NULL , ARG_WITH_NSS },
632- { "synthesize" , required_argument , NULL , ARG_SYNTHESIZE },
629+ { "help" , no_argument , NULL , 'h' },
630+ { "version" , no_argument , NULL , ARG_VERSION },
631+ { "no-pager" , no_argument , NULL , ARG_NO_PAGER },
632+ { "no-legend" , no_argument , NULL , ARG_NO_LEGEND },
633+ { "output" , required_argument , NULL , ARG_OUTPUT },
634+ { "service" , required_argument , NULL , 's' },
635+ { "with-nss" , required_argument , NULL , ARG_WITH_NSS },
636+ { "with-dropin" , required_argument , NULL , ARG_WITH_DROPIN },
637+ { "with-varlink" , required_argument , NULL , ARG_WITH_VARLINK },
638+ { "synthesize" , required_argument , NULL , ARG_SYNTHESIZE },
633639 {}
634640 };
635641
@@ -728,6 +734,22 @@ static int parse_argv(int argc, char *argv[]) {
728734 SET_FLAG (arg_userdb_flags , USERDB_EXCLUDE_NSS , !r );
729735 break ;
730736
737+ case ARG_WITH_DROPIN :
738+ r = parse_boolean_argument ("--with-dropin=" , optarg , NULL );
739+ if (r < 0 )
740+ return r ;
741+
742+ SET_FLAG (arg_userdb_flags , USERDB_EXCLUDE_DROPIN , !r );
743+ break ;
744+
745+ case ARG_WITH_VARLINK :
746+ r = parse_boolean_argument ("--with-varlink=" , optarg , NULL );
747+ if (r < 0 )
748+ return r ;
749+
750+ SET_FLAG (arg_userdb_flags , USERDB_EXCLUDE_VARLINK , !r );
751+ break ;
752+
731753 case ARG_SYNTHESIZE :
732754 r = parse_boolean_argument ("--synthesize=" , optarg , NULL );
733755 if (r < 0 )
0 commit comments