]> arthur.barton.de Git - netatalk.git/commitdiff
set invisible bit in finderinfo too, should partially fix sf bug 1033346 (temporary...
authordidg <didg>
Fri, 15 Sep 2006 00:05:51 +0000 (00:05 +0000)
committerdidg <didg>
Fri, 15 Sep 2006 00:05:51 +0000 (00:05 +0000)
etc/afpd/volume.c

index c4d75c2c1aa21f8db2fe628f13e5618998775141..fd87c57a2261ecac412d7e301adb905ab91a48e6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.65 2006-09-09 02:48:25 didg Exp $
+ * $Id: volume.c,v 1.66 2006-09-15 00:05:51 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -2186,14 +2186,14 @@ static int create_special_folder (const struct vol *vol, const struct _special_f
                ad_getattr(&ad, &attr);
                attr |= htons( ntohs( attr ) | ATTRBIT_INVISIBLE );
                ad_setattr(&ad, attr);
-#if 0          
+
                /* do the same with the finder info */
                if (ad_entry(&ad, ADEID_FINDERI)) {
                        memcpy(&attr, ad_entry(&ad, ADEID_FINDERI) + FINDERINFO_FRFLAGOFF, sizeof(attr));
                        attr   |= htons(FINDERINFO_INVISIBLE);
                        memcpy(ad_entry(&ad, ADEID_FINDERI) + FINDERINFO_FRFLAGOFF,&attr, sizeof(attr));
                }
-#endif    
+
                ad_flush( &ad, ADFLAGS_HF );
                ad_close( &ad, ADFLAGS_HF );
        }