From b721f9d0957c5c30f86ff485240f68881fc329a6 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Mon, 30 Dec 2019 20:28:04 +0000 Subject: configfiles: Fix utime retcode check In final fixups for #7139 it seems I managed to screw up utime error checks. Everything still works, but we MP_WARN when we don't need to. --- player/configfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/configfiles.c') diff --git a/player/configfiles.c b/player/configfiles.c index 658b3549bc..5cea24e22c 100644 --- a/player/configfiles.c +++ b/player/configfiles.c @@ -177,7 +177,7 @@ static bool copy_mtime(const char *f1, const char *f2) .modtime = st1.st_mtime, }; - if (!utime(f2, &ut)) + if (utime(f2, &ut) != 0) return false; return true; -- cgit v1.2.3