Minor rename bug in samba 2.2.8a

Nir Livni nirl at cyber-ark.com
Sun Jan 18 16:47:22 GMT 2004


Dear all
When running with Samba 2.2.8a :

./smbclient //<server>/<share> -c "rename par1/*.dos par1/*.doc"

The operation fails.
The reason is that in reply.c/rename_internals line #4134 we have the
following call to the vfs rename:

if
(!conn->vfs_ops.rename(conn,dos_to_unix_static(fname),dos_to_unix_static
(destname)))

Since dos_to_unix_static returns a pointer to a static buffer,
vfs_ops.rename will receive the same value as the second and third
parameter, and fail the rename operation because the source and
destination file names are the same.

For your information,
Nir


More information about the samba-technical mailing list