diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-06-28 02:54:40 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-06-28 02:54:40 +0000 |
commit | 57101ef770e34ef9fd2ddcb5d9c9e9ad050e5e3d (patch) | |
tree | 837b0a544e9fe5b8113de2b20ed1540e53b04df8 /source/lib/util_file.c | |
parent | 3603cd4947df2c10df604447dc542932cb9e5d5a (diff) | |
download | samba-57101ef770e34ef9fd2ddcb5d9c9e9ad050e5e3d.tar.gz samba-57101ef770e34ef9fd2ddcb5d9c9e9ad050e5e3d.tar.xz samba-57101ef770e34ef9fd2ddcb5d9c9e9ad050e5e3d.zip |
don't warn on the loading of zero length files. This fixes the
'valid.dat' warning
Diffstat (limited to 'source/lib/util_file.c')
-rw-r--r-- | source/lib/util_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util_file.c b/source/lib/util_file.c index 883827a4f5f..90cb022f587 100644 --- a/source/lib/util_file.c +++ b/source/lib/util_file.c @@ -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); |