]> arthur.barton.de Git - netatalk.git/commitdiff
Fixes
authorFrank Lahm <franklahm@googlemail.com>
Tue, 14 Feb 2012 12:37:23 +0000 (13:37 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Tue, 14 Feb 2012 12:37:23 +0000 (13:37 +0100)
config/Makefile.am
etc/afpd/Makefile.am
etc/afpd/afp_options.c

index 5b2b2575976509542171ce09db8020d0b354b4ed..2d0a858070b13a2406b4410dd4458fdf80b58efb 100644 (file)
@@ -28,7 +28,7 @@ pkgconfdir = @PKGCONFDIR@
 # install configuration files
 #
 
-install-data-local: install-config-files install-webmin
+install-data-local: install-config-files
 
 uninstall-local:
        for f in $(CONFFILES) $(GENFILES); do \
index 747d84f590e7c050a504b0b7a8c8893c9e158e65..8c46abe9b37089dd2a9db0b83376da952286d8a3 100644 (file)
@@ -57,7 +57,7 @@ afpd_CFLAGS = \
        -DSERVERTEXT=\"$(SERVERTEXT)/\" \
        -D_PATH_AFPDPWFILE=\"$(pkgconfdir)/afppasswd\" \
        -D_PATH_AFPDUAMPATH=\"$(UAMS_PATH)/\" \
-       -D_PATH_CONFDIR=\"$(pkgconfdir)\"
+       -D_PATH_CONFDIR=\"$(pkgconfdir)/\"
 
 if HAVE_ACLS
 afpd_SOURCES += acls.c
index b4e2306d21497af063ed486649bec3c4bbd5cc57..17e1706c5394cbc7f9a97f19f5de1e602ac27943 100644 (file)
@@ -427,22 +427,21 @@ static void show_paths( void )
 /*
  * Display usage information about afpd.
  */
-static void show_usage( char *name )
+static void show_usage(void)
 {
-       fprintf( stderr, "Usage:\t%s [-duptDTI] [-n nbpname]\n", name );
-       fprintf( stderr, "\t     [-c maxconnections] [-g guest] [-P pidfile] [-S port] [-L message]\n" );
-       fprintf( stderr, "\t     [-F configfile] [-U uams] [-m umask]\n" );
-       fprintf( stderr, "\t%s -h|-v|-V\n", name );
+       fprintf( stderr, "Usage:\tafpd [-d] [-F configfile]\n");
+       fprintf( stderr, "\tafpd -h|-v|-V\n");
 }
 
 void afp_options_parse_cmdline(int ac, char **av)
 {
-    char *p;
-    char *tmp; /* Used for error checking the result of strtol */
     int c, err = 0;
 
-    while (EOF != ( c = getopt( ac, av, "vVh" )) ) {
+    while (EOF != ( c = getopt( ac, av, "dFvVh" )) ) {
         switch ( c ) {
+        case 'd':
+        case 'F':
+            break;
         case 'v':      /* version */
             show_version( ); puts( "" );
             show_paths( ); puts( "" );
@@ -454,7 +453,7 @@ void afp_options_parse_cmdline(int ac, char **av)
             exit( 0 );
             break;
         case 'h':      /* usage */
-            show_usage( p );
+            show_usage();
             exit( 0 );
             break;
         default :
@@ -462,7 +461,7 @@ void afp_options_parse_cmdline(int ac, char **av)
         }
     }
     if ( err || optind != ac ) {
-        show_usage( p );
+        show_usage();
         exit( 2 );
     }