]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
Merge master
[netatalk.git] / etc / afpd / afp_options.c
index d82794905bd27d56330d9c64bf8f7df1bd093726..e79fc4f227928209ed140a4613f3825944551680 100644 (file)
@@ -516,6 +516,8 @@ int afp_options_parseline(char *buf, struct afp_options *options)
  */
 static void show_version( void )
 {
+       int num, i;
+
        printf( "afpd %s - Apple Filing Protocol (AFP) daemon of Netatalk\n\n", VERSION );
 
        puts( "This program is free software; you can redistribute it and/or modify it under" );
@@ -525,9 +527,12 @@ static void show_version( void )
 
        puts( "afpd has been compiled with support for these features:\n" );
 
-       printf( "        AFP3.x support:\tYes\n" );
-        printf( "        TCP/IP Support:\t" );
-        puts( "Yes" );
+       num = sizeof( afp_versions ) / sizeof( afp_versions[ 0 ] );
+       printf( "          AFP versions:\t" );
+       for ( i = 0; i < num; i++ ) {
+               printf( "%d.%d ", afp_versions[ i ].av_number/10, afp_versions[ i ].av_number%10);
+       }
+       puts( "" );
 
        printf( "         CNID backends:\t" );
 #ifdef CNID_BACKEND_CDB