[Samba] NTBackup and samba-3.0.4

Bruno Gimenes Pereti pereti at ump.edu.br
Wed Jul 14 14:30:02 GMT 2004


Hi,

I have a Win2000 in my network running ntbackup daily to backup data from
some servers including my Samba-3.0.4 (updated from 2.2.8a last month) with
the homedir of my users. Today I needed to restore one file from the tape
and there was no files from the samba server. Ntbackup can't access the
shares in samba anymore.
In my search I found a patch from Redhat here:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125714
this is it:

--- samba-3.0.4/source/smbd/filename.c.old	2004-06-10 15:00:51.000000000
+0100
+++ samba-3.0.4/source/smbd/filename.c	2004-06-10 15:01:35.000000000 +0100
@@ -137,6 +137,10 @@
 	if (!*name) {
 		name[0] = '.';
 		name[1] = '\0';
+		if (SMB_VFS_STAT(conn,name,&st) == 0) {
+			*pst = st;
+		}
+		DEBUG(5,("conversion finished %s -> %s\n",orig_path, name));
 		return(True);
 	}

I don't know exactly what this should do but I tried any way. I altered the
file filename.c and recompiled samba. I copied the new smbd to
/usr/local/samba/bin and restarted samba but it didn't correct the problem.

Sorry if this was addressed before in the list but I didn't find it in the
archive.
Does any body have de solution?

Thanks

Bruno Gimenes Pereti.



More information about the samba mailing list