diff options
author | Ralph Boehme <rb@sernet.de> | 2014-09-15 13:49:48 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-09-25 21:19:12 +0200 |
commit | 168191d9bf02a01a3f336893f1eafc44c5077417 (patch) | |
tree | f19bd1bbc2e7d65832c1ed9b2a51e7f8a01b84b1 | |
parent | 87347f977249d3ed877384d71c8604afe7756907 (diff) | |
download | samba-168191d9bf02a01a3f336893f1eafc44c5077417.tar.gz |
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>
-rw-r--r-- | source3/modules/vfs_fruit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 37027459f50..458904edc9a 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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; } |