VFS error - turns out to be vps_ops.rename failure .. help
Alexander Bokovoy
a.bokovoy at sam-solutions.net
Thu May 9 23:30:03 GMT 2002
On Thu, May 09, 2002 at 10:07:32AM -0500, troutb at abclabs.com wrote:
> It looks like the problem with recycle is vps_ops.rename ..
> I even moved some code into audit to see if it made differenct, but got the
> same thing ....
> it just fails
> I am not much of a c programmer, but I'm willing to try ....
> can someone knows VFS help me out?
> at least point me in the right direction?
This is known bug, I've posted correction several times. In brief:
--- ./examples/VFS/recycle.c.orig Mon Mar 25 12:56:47 2002
+++ ./examples/VFS/recycle.c Fri Apr 12 18:21:54 2002
@@ -239,9 +163,10 @@
}
base = strrchr(fname, '/') + 1;
- if(base == (char*)1)
+ if(base == (char*)1) {
ext = strrchr(fname, '.');
- else
+ base = fname;
+ } else
ext = strrchr(base, '.');
pstrcpy(bin,
recycle_bin);
--
/ Alexander Bokovoy
Software architect and analyst // SaM-Solutions Ltd.
---
Put no trust in cryptic comments.
More information about the samba-technical
mailing list