projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lintian doesn't like orphan packages with uploaders...
[debian/amanda]
/
client-src
/
runtar.c
diff --git
a/client-src/runtar.c
b/client-src/runtar.c
index cc4705faada555cdd4a4bfd6fd85268e7f5c2d72..194a00a4ac8ff8798ce3acd213c6214ef35fec5a 100644
(file)
--- a/
client-src/runtar.c
+++ b/
client-src/runtar.c
@@
-1,6
+1,7
@@
/*
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
* Copyright (c) 1991-1998 University of Maryland at College Park
/*
* 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
* All Rights Reserved.
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@
-34,8
+35,8
@@
* ...
*/
#include "amanda.h"
* ...
*/
#include "amanda.h"
-#include "version.h"
#include "util.h"
#include "util.h"
+#include "conffile.h"
int main(int argc, char **argv);
int main(int argc, char **argv);
@@
-51,6
+52,11
@@
main(
char *cmdline;
#endif
char *cmdline;
#endif
+ if (argc > 1 && argv && argv[1] && g_str_equal(argv[1], "--version")) {
+ printf("runtar-%s\n", VERSION);
+ return (0);
+ }
+
/*
* Configure program for internationalization:
* 1) Only set the message locale for now.
/*
* Configure program for internationalization:
* 1) Only set the message locale for now.
@@
-69,12
+75,14
@@
main(
signal(SIGPIPE, SIG_IGN);
dbopen(DBG_SUBDIR_CLIENT);
signal(SIGPIPE, SIG_IGN);
dbopen(DBG_SUBDIR_CLIENT);
+ config_init(CONFIG_INIT_CLIENT, NULL);
+
if (argc < 3) {
error(_("Need at least 3 arguments\n"));
/*NOTREACHED*/
}
if (argc < 3) {
error(_("Need at least 3 arguments\n"));
/*NOTREACHED*/
}
- dbprintf(_("version %s\n"),
version()
);
+ dbprintf(_("version %s\n"),
VERSION
);
if (strcmp(argv[3], "--create") != 0) {
error(_("Can only be used to create tar archives\n"));
if (strcmp(argv[3], "--create") != 0) {
error(_("Can only be used to create tar archives\n"));