]> arthur.barton.de Git - netatalk.git/commit
Unarchiving certain ZIP archives fails, bug #569
authorRalph Boehme <rb@sernet.de>
Tue, 17 Jun 2014 15:02:20 +0000 (17:02 +0200)
committerRalph Boehme <rb@sernet.de>
Tue, 17 Jun 2014 15:02:20 +0000 (17:02 +0200)
commitff7264380507bde532394739d3744130f6d85df8
tree9b74ed9ab801894ea8b6c043c89d21e72295e10c
parentd2b2292769cdf67578efd24a3319a80e32872a31
Unarchiving certain ZIP archives fails, bug #569

The current code that checks whether the client is allowed to use
pathnames starting with ._ checks whether the file is an AppleDouble
file, and if it is and the filler does not contain the magic string
"Mac OS X", access to the file is denied. This results in the
following sequence of steps:

* client created empty file "._NAME"
* client wants to stat the newly created file "._NAME"
* server checks whether access to the file is allowed
* check fails

Modify check in ad_valid_header_osx() to allow access to all .-
AppleDouble files where the filler string is not "Netatalk", which is
the magic string Netatalk puts there.

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