aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-03-31 13:17:46 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-03-31 13:17:46 -0800
commitf17dcc21a35a0ac7f22582132ee1c56330e93b13 (patch)
tree07fd618a85a6774277577a436fa63b0a269aea73
parented6f70753a49e62807bb0d8f5765c9075eacf55a (diff)
downloadtinyrad-f17dcc21a35a0ac7f22582132ee1c56330e93b13.tar.gz
tinyrad-f17dcc21a35a0ac7f22582132ee1c56330e93b13.tar.bz2
tinyrad-f17dcc21a35a0ac7f22582132ee1c56330e93b13.tar.xz
tinyrad-f17dcc21a35a0ac7f22582132ee1c56330e93b13.zip
tinyrad: enabling -f option
-rw-r--r--src/tru/tinyradutil.c4
-rw-r--r--src/tru/tinyradutil.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/tru/tinyradutil.c b/src/tru/tinyradutil.c
index ec627d7..71f725d 100644
--- a/src/tru/tinyradutil.c
+++ b/src/tru/tinyradutil.c
@@ -448,6 +448,10 @@ tru_getopt(
448 tinyrad_set_option(NULL, TRAD_OPT_DEBUG_LEVEL, &opt); 448 tinyrad_set_option(NULL, TRAD_OPT_DEBUG_LEVEL, &opt);
449 return(TRU_GETOPT_MATCHED); 449 return(TRU_GETOPT_MATCHED);
450 450
451 case 'f':
452 cnf->attr_file = optarg;
453 return(TRU_GETOPT_MATCHED);
454
451 case 'H': 455 case 'H':
452 cnf->url = optarg; 456 cnf->url = optarg;
453 return(TRU_GETOPT_MATCHED); 457 return(TRU_GETOPT_MATCHED);
diff --git a/src/tru/tinyradutil.h b/src/tru/tinyradutil.h
index 6bfda50..78b3b1d 100644
--- a/src/tru/tinyradutil.h
+++ b/src/tru/tinyradutil.h
@@ -141,6 +141,8 @@ struct tinyrad_util_config
141 const char * url; 141 const char * url;
142 char ** dict_files; 142 char ** dict_files;
143 char ** dict_paths; 143 char ** dict_paths;
144 const char * attr_file;
145 void * padptr;
144}; 146};
145 147
146 148