X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fafp_options.c;h=43992ed771f8f9e2d8f3c7c981cdc085cfefb2c7;hb=3c047583a192b6dad0938e4c7fbefcb92755b727;hp=b79bc8d1f443329bb220f5dbbf408e60e1e390b2;hpb=bea0c55cc833ccc859c8a9413d52af5c61cf3593;p=netatalk.git diff --git a/etc/afpd/afp_options.c b/etc/afpd/afp_options.c index b79bc8d1..43992ed7 100644 --- a/etc/afpd/afp_options.c +++ b/etc/afpd/afp_options.c @@ -240,6 +240,10 @@ int afp_options_parseline(char *buf, struct afp_options *options) 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")) @@ -696,11 +700,14 @@ int afp_options_parse(int ac, char **av, struct afp_options *options) *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 ) { @@ -792,11 +799,5 @@ int afp_options_parse(int ac, char **av, struct afp_options *options) exit( 2 ); } -#ifdef ultrix - openlog( p, LOG_PID ); /* ultrix only */ -#else - set_processname(p); -#endif /* ultrix */ - return 1; }