* ...
*/
#include "amanda.h"
-#include "version.h"
#include "util.h"
+#include "conffile.h"
int main(int argc, char **argv);
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.
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*/
}
- 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"));
}
} while(0);
- if(get_client_uid() == (uid_t) -1) {
- error(_("error [cannot find user %s in passwd file]\n"), CLIENT_LOGIN);
- /*NOTREACHED*/
- }
-
#ifdef WANT_SETUID_CLIENT
check_running_as(RUNNING_AS_CLIENT_LOGIN | RUNNING_AS_UID_ONLY);
if (!become_root()) {