From f83b693bdc562adad0b8ddb538a0ab500c159fef Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Fri, 18 Feb 2011 12:19:06 +0100 Subject: [PATCH] Cant disable AFP3x anymore --- NEWS | 4 ++-- configure.in | 34 +--------------------------------- etc/afpd/afp_options.c | 8 +------- etc/afpd/auth.c | 5 ++--- etc/afpd/main.c | 2 -- etc/afpd/uam.c | 4 ---- include/atalk/volume.h | 4 ---- 7 files changed, 6 insertions(+), 55 deletions(-) diff --git a/NEWS b/NEWS index a811ac7e..f40686f5 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,8 @@ Changes in 2.2beta2 ==================== -* NEW: afpd: primary AFP reconnect -* NEW: afpd: AFP replay cache +* NEW: afpd: AFP 3.3 +* UPD: afpd: AFP 3.x can't be disabled Changes in 2.2beta1 ==================== diff --git a/configure.in b/configure.in index beef88e4..5bce2794 100644 --- a/configure.in +++ b/configure.in @@ -249,39 +249,7 @@ AC_ARG_ENABLE(debugging, ] ) - -afp3=no -afp3set=no -AC_MSG_CHECKING([whether AFP 3.x calls should be enabled]) -AC_ARG_ENABLE(afp3, - [ --disable-afp3 disable AFP 3.x calls], - [ - if test x"$enableval" != x"no"; then - afp3set=yes - afp3=yes - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - fi - ],[ - AC_MSG_RESULT([yes]) - afp3=yes - ] -) - -if test x"$afp3" = x"yes"; then - AC_SYS_LARGEFILE([ - AC_DEFINE(AFP3x, 1, [Define to enable AFP 3.x support]) - ],[ - if test x"$afp3set" = x"yes"; then - AC_MSG_ERROR([AFP 3.x support requires Large File Support.]) - else - AC_MSG_WARN([AFP 3.x support requires Large File Support. AFP3.x support disabled]) - afp3=no - fi - ]) -fi - +AC_SYS_LARGEFILE([], AC_MSG_ERROR([AFP 3.x support requires Large File Support.])) AC_CHECK_ICONV dnl ----------- A NOTE ABOUT DROPKLUDGE diff --git a/etc/afpd/afp_options.c b/etc/afpd/afp_options.c index b8e5130b..6d5fb0df 100644 --- a/etc/afpd/afp_options.c +++ b/etc/afpd/afp_options.c @@ -481,13 +481,7 @@ static void show_version( void ) puts( "afpd has been compiled with support for these features:\n" ); - printf( " AFP3.x support:\t" ); -#ifdef AFP3x - puts( "Yes" ); -#else - puts( "No" ); -#endif - + printf( " AFP3.x support:\tYes\n" ); printf( " TCP/IP Support:\t" ); puts( "Yes" ); diff --git a/etc/afpd/auth.c b/etc/afpd/auth.c index 3e0fd5eb..0bb6027c 100644 --- a/etc/afpd/auth.c +++ b/etc/afpd/auth.c @@ -79,11 +79,10 @@ static struct afp_versions afp_versions[] = { { "AFPVersion 2.1", 21 }, #endif /* ! NO_DDP */ { "AFP2.2", 22 }, -#ifdef AFP3x { "AFPX03", 30 }, { "AFP3.1", 31 }, - { "AFP3.2", 32 } -#endif /* AFP3x */ + { "AFP3.2", 32 }, + { "AFP3.3", 33 } }; static struct uam_mod uam_modules = {NULL, NULL, &uam_modules, &uam_modules}; diff --git a/etc/afpd/main.c b/etc/afpd/main.c index 6fa49cf4..0d552d6f 100644 --- a/etc/afpd/main.c +++ b/etc/afpd/main.c @@ -229,7 +229,6 @@ int main(int ac, char **av) } memset(&sv, 0, sizeof(sv)); -#ifdef AFP3x /* linux at least up to 2.4.22 send a SIGXFZ for vfat fs, even if the file is open with O_LARGEFILE ! */ #ifdef SIGXFSZ @@ -239,7 +238,6 @@ int main(int ac, char **av) LOG(log_error, logtype_afpd, "main: sigaction: %s", strerror(errno) ); exit(EXITERR_SYS); } -#endif #endif sv.sa_handler = child_handler; diff --git a/etc/afpd/uam.c b/etc/afpd/uam.c index 532a6201..92173915 100644 --- a/etc/afpd/uam.c +++ b/etc/afpd/uam.c @@ -56,11 +56,7 @@ char *strchr (), *strrchr (); #include "auth.h" #include "uam_auth.h" -#ifdef AFP3x #define utf8_encoding() (afp_version >= 30) -#else -#define utf8_encoding() (0) -#endif #ifdef TRU64 #include diff --git a/include/atalk/volume.h b/include/atalk/volume.h index 77966459..c2db33db 100644 --- a/include/atalk/volume.h +++ b/include/atalk/volume.h @@ -197,11 +197,7 @@ int wincheck(const struct vol *vol, const char *path); #define VOLPBIT_XBTOTAL 10 #define VOLPBIT_BSIZE 11 /* block size */ -#ifdef AFP3x #define utf8_encoding() (afp_version >= 30) -#else -#define utf8_encoding() (0) -#endif #define vol_noadouble(vol) (((vol)->v_flags & AFPVOL_NOADOUBLE) ? 1 : 0) #define vol_nodev(vol) (((vol)->v_flags & AFPVOL_NODEV) ? 1 : 0) -- 2.39.2