svn commit: samba r7951 - in trunk/examples/VFS: .
jra at samba.org
jra at samba.org
Mon Jun 27 18:32:56 GMT 2005
Author: jra
Date: 2005-06-27 18:32:56 +0000 (Mon, 27 Jun 2005)
New Revision: 7951
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7951
Log:
Fix for bug #2826 pointed out by Jiri Klouda <jk at zg.cz>.
Wrong return val for symlink and readlink.
Jeremy.
Modified:
trunk/examples/VFS/skel_opaque.c
trunk/examples/VFS/skel_transparent.c
Changeset:
Modified: trunk/examples/VFS/skel_opaque.c
===================================================================
--- trunk/examples/VFS/skel_opaque.c 2005-06-27 17:31:02 UTC (rev 7950)
+++ trunk/examples/VFS/skel_opaque.c 2005-06-27 18:32:56 UTC (rev 7951)
@@ -221,12 +221,12 @@
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);
}
Modified: trunk/examples/VFS/skel_transparent.c
===================================================================
--- trunk/examples/VFS/skel_transparent.c 2005-06-27 17:31:02 UTC (rev 7950)
+++ trunk/examples/VFS/skel_transparent.c 2005-06-27 18:32:56 UTC (rev 7951)
@@ -220,12 +220,12 @@
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);
}
More information about the samba-cvs
mailing list