* FIX: afpd: Fix a crash on FreeBSD
* FIX: Fix possible alignment violations due to bad casts
* FIX: dbd: Fix logging
+* FIX: apple_dump: Extended Attributes AppleDouble support for *BSD
* UPD: Install relevant includes necessary for building programs with
installed headers and shared lib libatalk
$eacommand = 2;
} elsif (0 == system("which runat > /dev/null 2>&1")) {
$eacommand = 3;
+} elsif (0 == system("which getextattr > /dev/null 2>&1")) {
+ $eacommand = 4;
} else {
$eacommand = 0;
}
}
close (EALIST);
return 0;
+ } elsif ( $eacommand == 4 ) {
+ open(EALIST, "lsextattr -q user \"$file\" |");
+ while(<EALIST>) {
+ $_ = "\t".$_;
+ if ( $_ =~ /\torg\.netatalk\.Metadata[\n\t]/ ) {
+ close (EALIST);
+ return 1;
+ }
+ }
+ close (EALIST);
+ return 0;
} else {
return 0;
}
system("attr -q -g org.netatalk.Metadata \"$file\" > $eatempfile");
} elsif ( $eacommand == 3 ) {
system("runat \"$file\" cat org.netatalk.Metadata > $eatempfile");
+ } elsif ( $eacommand == 4 ) {
+ system("getextattr -q user org.netatalk.Metadata \"$file\" > $eatempfile");
} else {
return "";
}