#include <atalk/paths.h>
#include <atalk/util.h>
#include <atalk/compat.h>
+#include <atalk/globals.h>
#include <atalk/fce_api.h>
-#include "globals.h"
#include "status.h"
#include "auth.h"
#include "dircache.h"
options->flags |= OPTION_ANNOUNCESSH;
if (strstr(buf, " -noacl2maccess"))
options->flags &= ~OPTION_ACL2MACCESS;
+ if (strstr(buf, " -keepsessions")) {
+ default_options.flags |= OPTION_KEEPSESSIONS;
+ options->flags |= OPTION_KEEPSESSIONS;
+ }
/* passwd bits */
if (strstr(buf, " -nosavepassword"))
while (NULL != (c = strstr(c, "-setuplog"))) {
char *optstr;
if ((optstr = getoption(c, "-setuplog"))) {
+ /* hokey2: options->logconfig must be converted to store an array of logstrings */
+ if (options->logconfig)
+ free(options->logconfig);
+ options->logconfig = strdup(optstr);
setuplog(optstr);
- options->logconfig = optstr; /* at least store the last (possibly only) one */
c += sizeof("-setuplog");
}
}
*p = '\0';
}
+#ifdef ultrix
if (NULL == ( p = strrchr( av[ 0 ], '/' )) ) {
p = av[ 0 ];
} else {
p++;
}
+ openlog( p, LOG_PID ); /* ultrix only */
+#endif /* ultrix */
while (EOF != ( c = getopt( ac, av, OPTIONS )) ) {
switch ( c ) {
exit( 2 );
}
-#ifdef ultrix
- openlog( p, LOG_PID ); /* ultrix only */
-#else
- set_processname(p);
-#endif /* ultrix */
-
return 1;
}