diff --git a/lib/utils_device_locking.c b/lib/utils_device_locking.c index c5f7e033..d081392b 100644 --- a/lib/utils_device_locking.c +++ b/lib/utils_device_locking.c @@ -73,7 +73,7 @@ static int open_lock_dir(struct crypt_device *cd, const char *dir, const char *b { int dirfd, lockdfd; - dirfd = open(dir, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); + dirfd = open(dir, O_RDONLY | O_DIRECTORY | O_CLOEXEC); if (dirfd < 0) { log_dbg("Failed to open directory '%s': (%d: %s).", dir, errno, strerror(errno)); return -EINVAL;