summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-06-30 16:41:48 -0700
committerTim Prouty <tprouty@samba.org>2009-07-06 15:38:35 -0700
commite4a85da5708a08f06a50f4f6b95e22d0e148d85e (patch)
tree87691bbc91419469f7d0d645e9ce9a9dd83e05ae /source3
parent5a09ba460cb757823e1deb8b2f2ae762765846c0 (diff)
downloadsamba-e4a85da5708a08f06a50f4f6b95e22d0e148d85e.tar.gz
samba-e4a85da5708a08f06a50f4f6b95e22d0e148d85e.tar.bz2
samba-e4a85da5708a08f06a50f4f6b95e22d0e148d85e.zip
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.
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_onefs_shadow_copy.c4
1 files changed, 2 insertions, 2 deletions
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);
}
/**