From e4a85da5708a08f06a50f4f6b95e22d0e148d85e Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Tue, 30 Jun 2009 16:41:48 -0700 Subject: s3 onefs: Fix failure in POSIX smbtorture test The return value of readlink was a bool instead of an int, which caused the length of the returned value to never be >1. --- source3/modules/vfs_onefs_shadow_copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_onefs_shadow_copy.c b/source3/modules/vfs_onefs_shadow_copy.c index 8d7e109170..04460d6056 100644 --- a/source3/modules/vfs_onefs_shadow_copy.c +++ b/source3/modules/vfs_onefs_shadow_copy.c @@ -404,13 +404,13 @@ onefs_shadow_copy_symlink(vfs_handle_struct *handle, return ret; } -static bool +static int onefs_shadow_copy_readlink(vfs_handle_struct *handle, const char *path, char *buf, size_t bufsiz) { SHADOW_NEXT(READLINK, (handle, cpath ?: path, buf, bufsiz), - bool); + int); } /** -- cgit