]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
Correct logger setup in afpd and reduce log clutter by reducing loglevel of logger...
[netatalk.git] / etc / afpd / afp_options.c
index 22ab58d6446d041bbcae353b59f4e311b4423f45..43992ed771f8f9e2d8f3c7c981cdc085cfefb2c7 100644 (file)
@@ -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;
 }