mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
vfs_fruit: ad_write: path may be NULL for rfork
In preperation of the next commit where we want to call ad_write() on a resource fork without having a name, just an fsp, which is fine for resource forks. Signed-off-by: Ralph Boehme <rb@sernet.de> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
87347f9772
commit
168191d9bf
@ -1114,7 +1114,9 @@ exit:
|
||||
* Set AppleDouble metadata on a file or directory
|
||||
*
|
||||
* @param[in] ad adouble handle
|
||||
* @param[in] path pathname to file or directory
|
||||
|
||||
* @param[in] path pathname to file or directory, may be NULL for a
|
||||
* resource fork
|
||||
*
|
||||
* @return status code, 0 means success
|
||||
**/
|
||||
@ -1145,7 +1147,8 @@ static int ad_write(struct adouble *ad, const char *path)
|
||||
len = sys_pwrite(ad->ad_fsp->fh->fd, ad->ad_data,
|
||||
talloc_get_size(ad->ad_data), 0);
|
||||
if (len != talloc_get_size(ad->ad_data)) {
|
||||
DEBUG(1, ("short write on %s: %zd", path, len));
|
||||
DEBUG(1, ("short write on %s: %zd",
|
||||
fsp_str_dbg(ad->ad_fsp), len));
|
||||
rc = -1;
|
||||
goto exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user