summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-06-28 02:54:40 +0000
committerAndrew Tridgell <tridge@samba.org>2002-06-28 02:54:40 +0000
commit5bc613c36299123118f046136132a96f5b7f6e8b (patch)
tree0b339df559a5835a14b16db591d407e578a52d8f /source3/lib
parent452eb38df0553886313c9b19a945385d853e19ab (diff)
downloadsamba-5bc613c36299123118f046136132a96f5b7f6e8b.tar.gz
samba-5bc613c36299123118f046136132a96f5b7f6e8b.tar.bz2
samba-5bc613c36299123118f046136132a96f5b7f6e8b.zip
don't warn on the loading of zero length files. This fixes the
'valid.dat' warning (This used to be commit 57101ef770e34ef9fd2ddcb5d9c9e9ad050e5e3d)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c
index 883827a4f5..90cb022f58 100644
--- a/source3/lib/util_file.c
+++ b/source3/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);