X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famtrmlog.c;h=01193e832b8be4bc184c51bb32d01d552f717dd9;hb=HEAD;hp=9afc7960d62b795a641fdaf956a85de84895c79b;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/server-src/amtrmlog.c b/server-src/amtrmlog.c index 9afc796..01193e8 100644 --- a/server-src/amtrmlog.c +++ b/server-src/amtrmlog.c @@ -1,6 +1,7 @@ /* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1998 University of Maryland at College Park + * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -66,6 +67,11 @@ main( int dumpcycle; config_overrides_t *cfg_ovr = NULL; + if (argc > 1 && argv && argv[1] && g_str_equal(argv[1], "--version")) { + printf("amtrmlog-%s\n", VERSION); + return (0); + } + /* * Configure program for internationalization: * 1) Only set the message locale for now.