From: Alan T. DeKok Date: Sun, 30 Nov 2025 16:28:02 +0000 (-0500) Subject: it's OK to not be given an attribute X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26fbb0d9ffbde5615d9fea50f2aa8211b19529ac;p=thirdparty%2Ffreeradius-server.git it's OK to not be given an attribute just load all of the dictionaries, and then exit. --- diff --git a/src/bin/radict.c b/src/bin/radict.c index f07dbdf96ee..637cc829fd8 100644 --- a/src/bin/radict.c +++ b/src/bin/radict.c @@ -58,7 +58,7 @@ DIAG_ON(unused-macros) static void usage(void) { - fprintf(stderr, "usage: radict [OPTS] [attribute...]\n"); + fprintf(stderr, "usage: radict [OPTS] [attribute...]\n"); fprintf(stderr, " -A Export aliases.\n"); fprintf(stderr, " -c Print out in CSV format.\n"); fprintf(stderr, " -D Set main dictionary directory (defaults to " DICTDIR ").\n"); @@ -517,10 +517,7 @@ int main(int argc, char *argv[]) goto finish; } - if (argc == 0) { - fprintf(stderr, "Missing attribute argument\n"); - fr_exit(EXIT_FAILURE); - } + if (argc == 0) goto finish; while (argc-- > 0) { char *attr;