numeric ids.
2. Don't advertise server sided notifications if AFP version < 2.1.
Submitted by: didier <dgautheron@magic.fr>
afpd_SOURCES = unix.c ofork.c main.c switch.c auth.c volume.c directory.c \
file.c enumerate.c desktop.c filedir.c fork.c appl.c gettok.c \
status.c afp_options.c afp_asp.c afp_dsi.c messages.c afp_config.c \
- nfsquota.c codepage.c quota.c uam.c afs.c uid.c parse_mtab.c
+ nfsquota.c codepage.c quota.c uam.c afs.c uid.c parse_mtab.c \
+ afp_util.c
test_parse_mtab_SOURCES = test_parse_mtab.c parse_mtab.c
test_parse_mtab_LDADD = $(top_builddir)/libatalk/libatalk.la
/*
- * $Id: afp_asp.c,v 1.12 2002-02-28 21:20:39 jmarcus Exp $
+ * $Id: afp_asp.c,v 1.13 2002-03-16 20:38:09 jmarcus Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
#endif /* AFS */
func = (u_char) asp->commands[0];
if ( obj->options.flags & OPTION_DEBUG ) {
- printf( "command: %d\n", func );
+ printf("command: %d (%s)\n", func, AfpNum2name(func));
bprint( asp->commands, asp->cmdlen );
}
if ( afp_switch[ func ] != NULL ) {
/*
- * $Id: afp_dsi.c,v 1.18 2002-01-19 21:29:55 jmarcus Exp $
+ * $Id: afp_dsi.c,v 1.19 2002-03-16 20:38:09 jmarcus Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
function = (u_char) dsi->commands[0];
if (obj->options.flags & OPTION_DEBUG ) {
- printf("command: %d\n", function);
+ printf("command: %d (%s)\n", function, AfpNum2name(function));
bprint((char *) dsi->commands, dsi->cmdlen);
}
/*
- * $Id: globals.h,v 1.10 2002-03-13 19:28:23 srittau Exp $
+ * $Id: globals.h,v 1.11 2002-03-16 20:38:09 jmarcus Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
extern void initline __P((int, char *));
extern int parseline __P((int, char *));
+/* afp_util.c */
+const char *AfpNum2name __P((int ));
+
#ifndef NO_DDP
extern void afp_over_asp __P((AFPObj *));
#endif /* NO_DDP */
/*
- * $Id: volume.c,v 1.23 2002-03-13 19:29:17 srittau Exp $
+ * $Id: volume.c,v 1.24 2002-03-16 20:38:09 jmarcus Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
/* a little granularity */
if (vol->v_time < tv.tv_sec) {
vol->v_time = tv.tv_sec;
- if (obj->options.server_notif) {
+ if (afp_version > 21 && obj->options.server_notif) {
obj->attention(obj->handle, AFPATTN_NOTIFY | AFPATTN_VOLCHANGED);
}
}