1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-04-14 12:08:44 +02:00

Fix checking unlink result

This commit is contained in:
Konstantin Knizhnik 2019-02-28 15:53:56 +03:00
parent ba8410686b
commit 65099ca8d7

View File

@ -37,7 +37,7 @@ unlink_lock_atexit(void)
int res;
res = unlink(lock_file);
if (res != 0 && res != ENOENT)
if (res != 0 && errno != ENOENT)
elog(WARNING, "%s: %s", lock_file, strerror(errno));
}