1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

don't warn on the loading of zero length files. This fixes the

'valid.dat' warning
(This used to be commit 57101ef770)
This commit is contained in:
Andrew Tridgell 2002-06-28 02:54:40 +00:00
parent 452eb38df0
commit 5bc613c362

View File

@ -450,7 +450,7 @@ void *map_file(char *fname, size_t size)
#endif
if (!p) {
p = file_load(fname, &s2);
if (!p || s2 != size) {
if (!p || (s2 != 0 && s2 != size)) {
DEBUG(1,("incorrect size for %s - got %d expected %d\n",
fname, s2, size));
if (p) free(p);