]> git.ipfire.org Git - thirdparty/samba.git/commit
selftest: run vfs.fruit test against a share that deletes empty resource forks
authorRalph Boehme <slow@samba.org>
Tue, 21 May 2019 12:05:04 +0000 (14:05 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jun 2019 10:22:13 +0000 (10:22 +0000)
commit77655c657378faa4ba4fa7107faead5045b12649
tree6dd80a60e0ef91b04b06fbc6f425048063d15a76
parent45de537de143ba4bca99fe506e147dfe709c51e2
selftest: run vfs.fruit test against a share that deletes empty resource forks

This reveals a bug in the AppleDouble conversion code: the conversion code that
unlinks an empty resource fork AppleDouble sidecar file ("._file") gets
triggered as part of open_file_ntcreate(..., "file:AFP_AfpResource", ...):

after SMB_VFS_OPEN() has been called with O_CREAT, what created the file, we
call SMB_VFS_FSTAT() on the just created filehandle. This ends up in
ad_convert(), finds the resource fork empty and thus deletes the file.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13958

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 8ed9b6b457923d2353d1d18838f4a278db48c6b9)
selftest/knownfail.d/samba3.vfs.fruit
source3/selftest/tests.py