BUGFIX: TDB.C and TDBTOOL.C from Jul 9th CVS snapshot.

Jeremy Allison jeremy at valinux.com
Wed Jul 11 00:28:45 GMT 2001


"John E. Malmberg" wrote:

> TDB.C
> 
> OpenVMS needs the SMB_STRUCT_STAT to be used instead of struct stat on any
> module that references st_ino.  On OpenVMS st_ino in struct stat is
> unsigned short[3].
> 
> TDB_C.DIFF
> ************
> File PROJECT_ROOT:[SAMBA_VMS.SOURCE.TDB]TDB.C;2
>   233   /*      struct stat st; */
>   234           SMB_STRUCT_STAT st;
>   235           if (len <= tdb->map_size) return 0;
> ******
> File PROJECT_ROOT:[SAMBA_VMS.SOURCE.TDB]TDB.C;1
>   233           struct stat st;
>   234           if (len <= tdb->map_size) return 0;
> ************
> ************
> File PROJECT_ROOT:[SAMBA_VMS.SOURCE.TDB]TDB.C;2
>  1258   /*      struct stat st; */
>  1259           SMB_STRUCT_STAT st;
>  1260           int rev = 0, locked;
> ******
> File PROJECT_ROOT:[SAMBA_VMS.SOURCE.TDB]TDB.C;1
>  1257           struct stat st;
>  1258           int rev = 0, locked;
> ************

I don't understand why this fix is needed.

st_ino in the tdb code is simply assigned between
a tdb struct from the stat struct. Why does this fail
for any data type ?

We don't want to add Samba dependencies into tdb as it
is independent of the Samba code (it's hosted on sourceforge).

Can you explain what you're trying to fix please ?

Thanks,

	Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list