This will be needed in a later commit when converting xattrs in sidecar
AppleDouble files.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13076
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit
386249eea3a13303744dbab88480e80790138329)
* @return -1 in case an error occured, 0 if no conversion was done, 1
* otherwise
**/
-static int ad_convert(struct adouble *ad, int fd)
+static int ad_convert(struct adouble *ad,
+ const char *path,
+ int fd)
{
int rc = 0;
char *map = MAP_FAILED;
* there is lost.
*/
- ret = ad_convert(ad, ad->ad_fd);
+ ret = ad_convert(ad, path, ad->ad_fd);
if (ret != 0) {
DBG_WARNING("Failed to convert [%s]\n", path);
return len;