[Samba] 2.2.4: VFS->recycle->sig11

Giulio Orsero giulioo at pobox.com
Fri May 10 07:56:02 GMT 2002


samba-2.2.4 on linux 2.2.x (Red Hat 6.x). No large file enabled.

recicle.c as shipped in 2.2.4 cause sig11.

If I apply this patch that I found on usenet then it's ok
==

--- ./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);
==

However, I'd like to use the enhanced path from here
http://www.elbonia.de/samba/samba_recycle.html
(I have no large file so my SMB_OFF_T is correctly reported as 4).

But it has the very same problem, it sig11 after
  pstrcpy(fpath,"/");
    pstrcat(fpath,fname);
    path = strrchr(fpath+1, '/') + 1 ;
    *path='\0';
  <here sig11>

I tried manually applying the same patch but it does not work.

Can you help me?

Thanks.

-- 
giulioo at pobox.com




More information about the samba mailing list