X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fstatus.c;h=790b8c599037297a984a8a9f2a087a1e3db01942;hb=4b1b4f197a052f3110f3c243eabc1f9bed69cbff;hp=291989d65647429fa459de09fa2191fe157691a7;hpb=2366805a9b55331330d91f1b29c0ff14cb2dc4a8;p=netatalk.git diff --git a/etc/afpd/status.c b/etc/afpd/status.c index 291989d6..790b8c59 100644 --- a/etc/afpd/status.c +++ b/etc/afpd/status.c @@ -1,5 +1,5 @@ /* - * $Id: status.c,v 1.4.2.3 2002-02-08 02:54:24 jmarcus Exp $ + * $Id: status.c,v 1.4.2.4 2002-02-09 05:35:17 jmarcus Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -34,7 +34,7 @@ #include "afp_config.h" #include "icon.h" -static void status_flags(char *data, const int notif, const int ipok, +static void status_flags(char *data, const int ipok, const unsigned char passwdbits) { u_int16_t status; @@ -49,14 +49,7 @@ static void status_flags(char *data, const int notif, const int ipok, if (ipok) status |= AFPSRVRINFO_TCPIP; status |= AFPSRVRINFO_SRVMSGS; - /* Allow the user to decide if we should support server notifications. - * With this turned off, the clients will poll for directory changes every - * 10 seconds. This might be too costly to network resources, so make - * this an optional thing. Default will be to _not_ support server - * notifications. */ - if (notif) { - status |= AFPSRVRINFO_SRVNOTIFY; - } + status |= AFPSRVRINFO_SRVNOTIFY; status |= AFPSRVRINFO_FASTBOZO; status = htons(status); memcpy(data + AFPSTATUS_FLAGOFF, &status, sizeof(status)); @@ -325,7 +318,7 @@ void status_init(AFPConfig *aspconfig, AFPConfig *dsiconfig, * (16-bytes), network addresses, volume icon/mask */ - status_flags(status, options->server_notif, options->fqdn || + status_flags(status, options->fqdn || (dsiconfig && dsi->server.sin_addr.s_addr), options->passwdbits); /* returns offset to signature offset */