summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 5861314c02..f4325b813b 100644
--- a/source3/lib/util_file.c
+++ b/source3/lib/util_file.c
@@ -351,7 +351,7 @@ void *open_file_if_modified(const char *filename, char *mode, time_t *lastmodifi
{
FILE *f;
- if (file_modified(filename, lastmodified))
+ if (!file_modified(filename, lastmodified))
{
return NULL;
}