mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
Fixed position of LARGE_SMB_OFF_T definition. The SOFF_T define was
being done *before* the LARGE_SMB_OFF_T was being defined, but SOFF_T depended on it :-). This broke 64 bit file reporting. Jeremy. (This used to be commit c6a353cfabd99be0ce5bf508d716216443a44c20)
This commit is contained in:
parent
7be02a2037
commit
0ebdf28c98
@ -353,14 +353,6 @@
|
|||||||
|
|
||||||
#define SMB_OFF_T_BITS (sizeof(SMB_OFF_T)*8)
|
#define SMB_OFF_T_BITS (sizeof(SMB_OFF_T)*8)
|
||||||
|
|
||||||
|
|
||||||
#ifdef LARGE_SMB_OFF_T
|
|
||||||
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32))
|
|
||||||
#else
|
|
||||||
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set the define that tells us if we can do 64 bit
|
* Set the define that tells us if we can do 64 bit
|
||||||
* NT SMB calls.
|
* NT SMB calls.
|
||||||
@ -372,6 +364,12 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef LARGE_SMB_OFF_T
|
||||||
|
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32))
|
||||||
|
#else
|
||||||
|
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Type for stat structure.
|
* Type for stat structure.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user