]> arthur.barton.de Git - netatalk.git/commit
Dont copy our metadata EA in copyfile()
authorRalph Boehme <sloowfranklin@gmail.com>
Tue, 4 Dec 2012 15:08:27 +0000 (16:08 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Tue, 4 Dec 2012 17:58:22 +0000 (18:58 +0100)
commitff117107526219d5ce89d5ff683eddd414e40293
tree710ac01ddfc9473c73a792f393f2dbf76ed773c8
parent1a59f639265e6fc11385a40dcef2a70a53b54954
Dont copy our metadata EA in copyfile()

Apparently Apple is now relying more on the AFP copyfile function
for file copies where source and destination are on the same vol.
The copying is done by our copyfile() function. It calls into
our VFS stack where in the end _all_ extended attributes of the
file, including our metadata EA, will be copied from source to
dest.
This resulted in an incorrect metadata EA on the destination file,
eg the CNID was still the one of the source file.
Obviously the metadata EA of the destination file must be created
such that all relevant fields are properly assigned.

Fixes bug #452.
NEWS
etc/afpd/directory.c
etc/afpd/directory.h
etc/afpd/enumerate.c
etc/afpd/file.c
etc/afpd/file.h
etc/afpd/filedir.c
libatalk/vfs/ea_sys.c