svn commit: samba r7952 - in branches/SAMBA_3_0/examples/VFS: .
jra at samba.org
jra at samba.org
Mon Jun 27 18:33:01 GMT 2005
Author: jra
Date: 2005-06-27 18:32:58 +0000 (Mon, 27 Jun 2005)
New Revision: 7952
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7952
Log:
Fix for bug #2826 pointed out by Jiri Klouda <jk at zg.cz>.
Wrong return val for symlink and readlink.
Jeremy.
Modified:
branches/SAMBA_3_0/examples/VFS/skel_opaque.c
branches/SAMBA_3_0/examples/VFS/skel_transparent.c
Changeset:
Modified: branches/SAMBA_3_0/examples/VFS/skel_opaque.c
===================================================================
--- branches/SAMBA_3_0/examples/VFS/skel_opaque.c 2005-06-27 18:32:56 UTC (rev 7951)
+++ branches/SAMBA_3_0/examples/VFS/skel_opaque.c 2005-06-27 18:32:58 UTC (rev 7952)
@@ -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: branches/SAMBA_3_0/examples/VFS/skel_transparent.c
===================================================================
--- branches/SAMBA_3_0/examples/VFS/skel_transparent.c 2005-06-27 18:32:56 UTC (rev 7951)
+++ branches/SAMBA_3_0/examples/VFS/skel_transparent.c 2005-06-27 18:32:58 UTC (rev 7952)
@@ -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