/*
- * $Id: adouble.h,v 1.36 2009-06-19 13:38:33 franklahm Exp $
+ * $Id: adouble.h,v 1.37 2009-06-22 12:05:15 franklahm Exp $
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
*/
#define ADEID_DFORK 1
#define ADEID_RFORK 2
-#define ADEID_NAME 3
+#define ADEID_NAME 3 /* Note: starting with Netatalk 2.1 we do NOT alway set the name */
#define ADEID_COMMENT 4
#define ADEID_ICONBW 5
#define ADEID_ICONCOL 6
/* ad_attr.c */
extern int ad_setattr __P((const struct adouble *, const u_int16_t));
extern int ad_getattr __P((const struct adouble *, u_int16_t *));
-
+/* Note: starting with Netatalk 2.1 we do NOT alway set the name */
extern int ad_setname __P((struct adouble *, const char *));
#if AD_VERSION == AD_VERSION2
extern int ad_setid __P((struct adouble *, const dev_t dev,const ino_t ino, const u_int32_t, const u_int32_t, const void *));
/*
- * $Id: ad_open.c,v 1.42 2009-06-19 13:38:34 franklahm Exp $
+ * $Id: ad_open.c,v 1.43 2009-06-22 12:05:15 franklahm Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
* Copyright (c) 1990,1991 Regents of The University of Michigan.
/* the file is already deleted, perm, whatever, so return an error*/
ad_close(ad, adflags);
errno = err;
- return -1;
- }
+ return -1;
+ }
+ ad_flush(ad);
} else {
/* Read the adouble header in and parse it.*/
if (ad->ad_ops->ad_header_read( ad , pst) < 0