git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7525
91ce42f0-d328-0410-95d8-
f526ca767f89
user = argv[2];
password = argv[3];
dbhost = argv[4];
+ errno = 0;
dbport = strtol(argv[5], &endptr, 10);
if (*endptr != '\0') {
Pmsg0(0, _("Database port must be a numeric value.\n"));
exit(1);
- } else if (dbport == LONG_MIN || dbport == LONG_MAX) {
+ } else if (errno == ERANGE) {
Pmsg0(0, _("Database port must be a int value.\n"));
exit(1);
}
General:
29Aug08
+kes Fix compile warning in new dbcheck port code.
kes Fix migration code broken by previous virtual backup fix.
28Aug08
kes Fix problem of Virtual backup not writing a sequential FileIndex.