]> arthur.barton.de Git - netatalk.git/commitdiff
Fixes
authorFrank Lahm <franklahm@googlemail.com>
Wed, 4 Jan 2012 16:01:43 +0000 (17:01 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Wed, 4 Jan 2012 16:01:43 +0000 (17:01 +0100)
libatalk/adouble/ad_open.c
libatalk/adouble/ad_write.c

index 2223029b293ca905ed6f7ccfb6827a90983da4aa..537cdf6de3bb0f66a8449288f138786a0dc7ca31 100644 (file)
@@ -1147,7 +1147,8 @@ void ad_init(struct adouble *ad, const struct vol * restrict vol)
 {
     ad->ad_vers = vol->v_adouble;
     ad->ad_options = vol->v_ad_options;
-    ad->ad_maxeafssize = 3500;  /* FIXME: option from vol */
+//    ad->ad_maxeafssize = 3500;  /* FIXME: option from vol */
+    ad->ad_maxeafssize = 0;     /* no limit */
     ad_init_func(ad);
 }
 
index 5762d18f9b971fc44500e878748a86a93231a6ff..e745777c58efd53c1253218597662074d85854a6 100644 (file)
@@ -24,7 +24,7 @@
 
 static int fsetrsrcea(struct adouble *ad, int fd, const char *eaname, const void *value, size_t size, int flags)
 {
-    if (ad->ad_maxeafssize >= size) {
+    if ((ad->ad_maxeafssize == 0) || (ad->ad_maxeafssize >= size)) {
         if (sys_fsetxattr(fd, eaname, value, size, 0) == -1)
             return -1;
         return 0;