diff --git a/file-lock.c b/file-lock.c index ab0f67bf0..3054a5b8c 100644 --- a/file-lock.c +++ b/file-lock.c @@ -265,7 +265,7 @@ static int restore_file_locks_legacy(int pid) int fd, ret = -1; FileLockEntry *fle; - fd = open_image(CR_FD_FILE_LOCKS, O_RSTR | O_OPT, pid); + fd = open_image(CR_FD_FILE_LOCKS_PID, O_RSTR | O_OPT, pid); if (fd < 0) { if (fd == -ENOENT) return 0; diff --git a/image-desc.c b/image-desc.c index 49dc29d22..616cbe9dd 100644 --- a/image-desc.c +++ b/image-desc.c @@ -91,7 +91,7 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = { }, [CR_FD_FILE_LOCKS_PID] = { - .fmt = "filelocks-%d", + .fmt = "filelocks-%d.img", .magic = FILE_LOCKS_MAGIC, }, };