/*
- * $Id: desktop.c,v 1.29 2003-06-05 09:17:10 didg Exp $
+ * $Id: desktop.c,v 1.30 2003-06-09 14:42:38 srittau Exp $
*
* See COPYRIGHT.
*
*/
static char upath[ MAXPATHLEN + 1];
static char mpath[ MAXPATHLEN + 1];
+#ifdef AFP3x
static char ucs2[ MAXPATHLEN + 1];
+#endif
static char *old_mtoupath(const struct vol *vol, char *mpath)
{
}
/* --------------- */
+#ifdef AFP3x
extern unsigned int do_precomposition(unsigned int base, unsigned int comb);
static char comp[MAXPATHLEN +1];
}
return comp;
}
+#endif
/* --------------------------- */
char *mtoupath(const struct vol *vol, char *mpath, int utf8)
{
- char *m, *u, *r;
- int i = 0;
+ int i = 0;
+ char *m, *u;
+#ifdef AFP3x
+ char *r;
size_t inplen;
size_t outlen;
+#endif
if ( *mpath == '\0' ) {
return( "." );
/* --------------- */
char *utompath(const struct vol *vol, char *upath, int utf8)
{
- char *m, *u, *r;
int h;
int mangleflag = 0;
+ char *m, *u;
+#ifdef AFP3x
+ char *r;
size_t inplen;
size_t outlen;
+#endif
if (!vol_utf8(vol))
return old_utompath(vol, upath);
/*
- * $Id: file.c,v 1.94 2003-06-05 09:17:11 didg Exp $
+ * $Id: file.c,v 1.95 2003-06-09 14:42:39 srittau Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
u_int32_t utf8 = 0;
struct stat *st;
struct maccess ma;
+
#ifdef DEBUG
LOG(log_info, logtype_afpd, "begin getmetadata:");
#endif /* DEBUG */
/*
- * $Id: status.c,v 1.14 2003-06-09 14:25:51 srittau Exp $
+ * $Id: status.c,v 1.15 2003-06-09 14:42:40 srittau Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
const struct afp_options *options)
{
char *status;
- char *usersign, *ifaddr;
+ char *usersign;
int i;
u_int16_t offset, sigoff;
long hostid;
const DSI *dsi,
const struct afp_options *options)
{
- u_int16_t namelen, len;
char *begin = data;
u_int16_t offset;
+
memcpy(&offset, data + *nameoffset, sizeof(offset));
offset = ntohs(offset);
data += offset;