This adds an option --data-dir to honeyd. --Maximillian Dornseif Index: branches/md/honeyd.c =================================================================== --- branches/md/honeyd.c (.../trunk/honeyd.c) (revision 745) +++ branches/md/honeyd.c (.../branches/md/honeyd.c) (working copy) @@ -151,6 +151,7 @@ int honeyd_ttl = HONEYD_DFL_TTL; struct tcp_con honeyd_tmp; int honeyd_show_include_dir; +int honeyd_show_data_dir; int honeyd_show_version; int honeyd_show_usage; int honeyd_debug; @@ -173,6 +174,7 @@ static struct option honeyd_long_opts[] = { {"include-dir", 0, &honeyd_show_include_dir, 1}, + {"data-dir", 0, &honeyd_show_data_dir, 1}, {"version", 0, &honeyd_show_version, 1}, {"help", 0, &honeyd_show_usage, 1}, {"webserver-port", required_argument, NULL, 'W'}, @@ -213,7 +215,8 @@ " -h, --help Print this message and exit.\n" "\n" "For plugin development:\n" - " --include-dir Prints out header files directory and exits.\n"); + " --include-dir Prints out header files directory and exits.\n" + " --data-dir Prints out data/plug-in directory and exits.\n"); exit(1); } @@ -3076,6 +3079,10 @@ printf("%s\n", PATH_HONEYDINCLUDE); exit(0); } + if (honeyd_show_data_dir) { + printf("%s\n", PATH_HONEYDDATA); + exit(0); + } argc -= optind; argv += optind;