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

index ecdf2ea898dffe32d76faed5b2466e35af67035a..c6547086eda3a5c96316fb0e52d9047e67f52eb5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.51.2.7.2.33.2.11 2006-09-07 00:05:46 didg Exp $
+ * $Id: volume.c,v 1.51.2.7.2.33.2.12 2006-09-11 07:47:14 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -2179,14 +2179,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 );
        }