Imported Upstream version 3.3.3
[debian/amanda] / client-src / rundump.c
index 61994496e16c9dea7e0e902af47dcc1cf8eafb4e..9788e97e27296084fce248d9dcb434d03f2863a8 100644 (file)
@@ -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
@@ -33,8 +34,8 @@
  * argv[2] will be argv[0] of the DUMP program
  * ...
  */
-#include "util.h"
 #include "amanda.h"
+#include "util.h"
 #include "conffile.h"
 
 int main(int argc, char **argv);
@@ -66,6 +67,11 @@ main(
     char *cmdline;
 #endif /* ERRMSG */
 
+    if (argc > 1 && argv && argv[1] && g_str_equal(argv[1], "--version")) {
+       printf("rundump-%s\n", VERSION);
+       return (0);
+    }
+
     /*
      * Configure program for internationalization:
      *   1) Only set the message locale for now.