mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
fcf0b80dc9
commit
b721f9d095
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue