mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
don't warn on non-existant files in map_file(), let the caller handle any warning
This commit is contained in:
parent
57101ef770
commit
98a119ee58
@ -450,7 +450,8 @@ void *map_file(char *fname, size_t size)
|
||||
#endif
|
||||
if (!p) {
|
||||
p = file_load(fname, &s2);
|
||||
if (!p || (s2 != 0 && s2 != size)) {
|
||||
if (!p) return NULL;
|
||||
if (s2 != size) {
|
||||
DEBUG(1,("incorrect size for %s - got %d expected %d\n",
|
||||
fname, s2, size));
|
||||
if (p) free(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user