]> arthur.barton.de Git - netatalk.git/commit - libatalk/adouble/ad_conv.c
Resource fork conversion from AppleDouble v2 broken, bug #568
authorRalph Boehme <rb@sernet.de>
Sun, 15 Jun 2014 04:07:10 +0000 (06:07 +0200)
committerRalph Boehme <rb@sernet.de>
Thu, 19 Jun 2014 07:45:57 +0000 (09:45 +0200)
commit1fd316930fbb61d754cf7df36e584348bb95cfc3
tree7bb010f930090f0b1c298f0dbb5431bdf572ea5d
parent34bc1896576cd73dcb7fd2605b978c9ed9e4d1ac
Resource fork conversion from AppleDouble v2 broken, bug #568

Converting from AppleDouble v2 to ea may corrupt the resource fork. In
some circumstances an offset calculation is wrong resulting in corrupt
resource forks after the conversion.

Ensure the resource fork AppleDouble entry offset is always set up and
we don't rely on the manual offset calculation.

Skip ADEID_RFORK in ad_copy_header() and allow copying of AppleDouble
entry that have an initial zero size in the destination adouble.

Signed-off-by: Ralph Boehme <rb@sernet.de>
NEWS
libatalk/adouble/ad_conv.c
libatalk/adouble/ad_flush.c
libatalk/adouble/ad_open.c