diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 0d2e30ace..a55afcac3 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -276,12 +276,12 @@ main(int argc, char **argv) snprintf(tkfile, sizeof(tkfile), "/tmp/ftp_%u", (unsigned)getpid()); krb_set_tkt_string(tkfile); -#endif -#if defined(KRB4) && defined(KRB5) - if(k_hasafs()) - k_setpag(); #endif } +#if defined(KRB4) || defined(KRB5) + if(k_hasafs()) + k_setpag(); +#endif if(getarg(args, num_args, argc, argv, &optind)) usage(1);