summaryrefslogtreecommitdiff
path: root/source/smbd/files.c
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-05-10 00:05:27 +0000
committerHerb Lewis <herb@samba.org>2000-05-10 00:05:27 +0000
commitf2a5ba3f0939f59097f0ef6a25f1cf9b5574f157 (patch)
tree3343db4294794ca02928e4f48777a2301731c2b5 /source/smbd/files.c
parent6bf74da8b84a22aaddb0fbb160f02621abba01ba (diff)
downloadsamba-f2a5ba3f0939f59097f0ef6a25f1cf9b5574f157.tar.gz
Using a structure for a tdb key can lead to insideous, hard
to find bugs. On 64 bit IRIX, structure packing means that a struct { SMB_DEV_T dev /* 4 bytes */ SMB_INO_T ino /* 8 bytes */ } has 4 bytes of padding between the two members. If you don't null the memory before using it as a tdb key, you randomly can't find keys depending on what is in the padding. This caused me immense pain and was hard to track down.... :-) Jeremy.
Diffstat (limited to 'source/smbd/files.c')
0 files changed, 0 insertions, 0 deletions