*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
char facility[32];
int a; /* General-purpose variables */
struct passwd pw, *pwp = NULL;
char facility[32];
int a; /* General-purpose variables */
struct passwd pw, *pwp = NULL;
char relhome[PATH_MAX]="";
char ctdldir[PATH_MAX]=CTDLDIR;
int syslog_facility = LOG_DAEMON;
char relhome[PATH_MAX]="";
char ctdldir[PATH_MAX]=CTDLDIR;
int syslog_facility = LOG_DAEMON;
- if (!strncmp(argv[a], "-l", 2)) {
- safestrncpy(facility, &argv[a][2], sizeof(facility));
+ case 'l':
+ safestrncpy(facility, optarg, sizeof(facility));
- else if (!strncmp(argv[a], "-t", 2)) {
- /* deprecated */
- }
+ case 't': /* deprecated */
+ break;
+ case 'B': /* Basesize */
+ basesize = atoi(optarg);
+ break;
- /* -r tells the server not to drop root permissions. don't use
- * this unless you know what you're doing. this should be
- * removed in the next release if it proves unnecessary. */
- else if (!strcmp(argv[a], "-r")) {
+ /* -r tells the server not to drop root permissions.
+ * Don't use this unless you know what you're doing.
+ */
+ case 'r':
syslog(LOG_NOTICE,
"*** Citadel server engine v%d.%02d (build %s) ***",
(REV_LEVEL/100), (REV_LEVEL%100), svn_revision());
syslog(LOG_NOTICE,
"*** Citadel server engine v%d.%02d (build %s) ***",
(REV_LEVEL/100), (REV_LEVEL%100), svn_revision());
syslog(LOG_NOTICE, "This program is distributed under the terms of the GNU "
"General Public License.");
syslog(LOG_NOTICE, " ");
syslog(LOG_DEBUG, "Called as: %s", argv[0]);
syslog(LOG_INFO, "%s", libcitadel_version_string());
syslog(LOG_NOTICE, "This program is distributed under the terms of the GNU "
"General Public License.");
syslog(LOG_NOTICE, " ");
syslog(LOG_DEBUG, "Called as: %s", argv[0]);
syslog(LOG_INFO, "%s", libcitadel_version_string());
/* get_control() MUST MUST MUST be called BEFORE the databases are opened!! */
syslog(LOG_INFO, "Acquiring control record");
/* get_control() MUST MUST MUST be called BEFORE the databases are opened!! */
syslog(LOG_INFO, "Acquiring control record");