r7952: Fix for bug #2826 pointed out by Jiri Klouda <jk@zg.cz>.
authorJeremy Allison <jra@samba.org>
Mon, 27 Jun 2005 18:32:58 +0000 (18:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:58:04 +0000 (10:58 -0500)
Wrong return val for symlink and readlink.
Jeremy.
(This used to be commit f3c4d5a95746531b7bd548bbbfccfff197a2abf3)

examples/VFS/skel_opaque.c
examples/VFS/skel_transparent.c

index fb4254ccff1b1774173193b7d099803159539c0e..a3a42912f87ca055fbd7dfa74afeb449a3af87e4 100644 (file)
@@ -221,12 +221,12 @@ static BOOL skel_lock(vfs_handle_struct *handle, files_struct *fsp, int fd, int
        return vfswrap_lock(NULL, fsp, fd, op, offset, count, type);
 }
 
-static BOOL skel_symlink(vfs_handle_struct *handle, connection_struct *conn, const char *oldpath, const char *newpath)
+static int skel_symlink(vfs_handle_struct *handle, connection_struct *conn, const char *oldpath, const char *newpath)
 {
        return vfswrap_symlink(NULL, conn, oldpath, newpath);
 }
 
-static BOOL skel_readlink(vfs_handle_struct *handle, connection_struct *conn, const char *path, char *buf, size_t bufsiz)
+static int skel_readlink(vfs_handle_struct *handle, connection_struct *conn, const char *path, char *buf, size_t bufsiz)
 {
        return vfswrap_readlink(NULL, conn, path, buf, bufsiz);
 }
index 428ab970616789fbab33234bf5cb2106d3304689..8be1a7fb449356346e27ba4bfa6dd7ed2285ff60 100644 (file)
@@ -220,12 +220,12 @@ static BOOL skel_lock(vfs_handle_struct *handle, files_struct *fsp, int fd, int
        return SMB_VFS_NEXT_LOCK(handle, fsp, fd, op, offset, count, type);
 }
 
-static BOOL skel_symlink(vfs_handle_struct *handle, connection_struct *conn, const char *oldpath, const char *newpath)
+static int skel_symlink(vfs_handle_struct *handle, connection_struct *conn, const char *oldpath, const char *newpath)
 {
        return SMB_VFS_NEXT_SYMLINK(handle, conn, oldpath, newpath);
 }
 
-static BOOL skel_readlink(vfs_handle_struct *handle, connection_struct *conn, const char *path, char *buf, size_t bufsiz)
+static int skel_readlink(vfs_handle_struct *handle, connection_struct *conn, const char *path, char *buf, size_t bufsiz)
 {
        return SMB_VFS_NEXT_READLINK(handle, conn, path, buf, bufsiz);
 }