s3 onefs: Fix failure in POSIX smbtorture test
authorTim Prouty <tprouty@samba.org>
Tue, 30 Jun 2009 23:41:48 +0000 (16:41 -0700)
committerTim Prouty <tprouty@samba.org>
Mon, 6 Jul 2009 22:38:35 +0000 (15:38 -0700)
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

index 8d7e109170bbec14e80c10170f929c90498d413e..04460d6056c91111a46ea2337708141170d3e5d7 100644 (file)
@@ -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);
 }
 
 /**