X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fafp_options.c;h=43992ed771f8f9e2d8f3c7c981cdc085cfefb2c7;hp=22ab58d6446d041bbcae353b59f4e311b4423f45;hb=3c047583a192b6dad0938e4c7fbefcb92755b727;hpb=0cd00ae2fb02929c820994b6607497cfe1f1614c diff --git a/etc/afpd/afp_options.c b/etc/afpd/afp_options.c index 22ab58d6..43992ed7 100644 --- a/etc/afpd/afp_options.c +++ b/etc/afpd/afp_options.c @@ -700,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 ) { @@ -796,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; }