X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=etc%2Fafpd%2Fafp_options.c;fp=etc%2Fafpd%2Fafp_options.c;h=e79fc4f227928209ed140a4613f3825944551680;hb=2fdd522410f80afcd055d7333f491ee6c0b4b9fa;hp=d82794905bd27d56330d9c64bf8f7df1bd093726;hpb=dd7973d74cca6c48567a576ab2af4080aba64320;p=netatalk.git diff --git a/etc/afpd/afp_options.c b/etc/afpd/afp_options.c index d8279490..e79fc4f2 100644 --- a/etc/afpd/afp_options.c +++ b/etc/afpd/afp_options.c @@ -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