summaryrefslogtreecommitdiffstats
path: root/examples/VFS/skel_transparent.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-27 18:32:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:04 -0500
commitf3c4d5a95746531b7bd548bbbfccfff197a2abf3 (patch)
treed6aa9fec4682133c1fed9649962bdf258a42df93 /examples/VFS/skel_transparent.c
parent4d5002931056d2a88d49ce060c10bc0fecf4ba50 (diff)
downloadsamba-f3c4d5a95746531b7bd548bbbfccfff197a2abf3.tar.gz
samba-f3c4d5a95746531b7bd548bbbfccfff197a2abf3.tar.xz
samba-f3c4d5a95746531b7bd548bbbfccfff197a2abf3.zip
r7952: Fix for bug #2826 pointed out by Jiri Klouda <jk@zg.cz>.
Wrong return val for symlink and readlink. Jeremy.
Diffstat (limited to 'examples/VFS/skel_transparent.c')
-rw-r--r--examples/VFS/skel_transparent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 428ab970616..8be1a7fb449 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -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);
}