Commit [ff7264] Maximize Restore History

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>

Ralph Boehme Ralph Boehme 2014-06-17

changed include/atalk/adouble.h
changed libatalk/adouble/ad_flush.c
changed libatalk/adouble/ad_open.c
changed NEWS
include/atalk/adouble.h Diff Switch to side-by-side view
Loading...
libatalk/adouble/ad_flush.c Diff Switch to side-by-side view
Loading...
libatalk/adouble/ad_open.c Diff Switch to side-by-side view
Loading...
NEWS Diff Switch to side-by-side view
Loading...