]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commitdiff
EOVERFLOW -> ERANGE
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 15 May 2023 17:55:40 +0000 (13:55 -0400)
committerIgor Golikov <igolikov@ibm.com>
Thu, 13 Feb 2025 15:26:56 +0000 (17:26 +0200)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
keyring/fs_keyring.go

index 700072c80ab20ddeb7ad87cda4f5f0591bb19438..bd89ace254f8433040deddc3f93323f985f8c540 100644 (file)
@@ -203,7 +203,7 @@ func fsAddEncryptionKey(key *crypto.Key, descriptor string,
        }
        _, _, errno := unix.Syscall(unix.SYS_IOCTL, dir.Fd(),
                unix.FS_IOC_ADD_ENCRYPTION_KEY, uintptr(argKey.UnsafePtr()))
-       if errno == unix.EOVERFLOW {
+       if errno == unix.ERANGE {
                _, _, errno = unix.Syscall(unix.SYS_IOCTL, dir.Fd(),
                        uintptr(C.fs_ioc_add_encryption_key64), uintptr(argKey.UnsafePtr()))
        restorePrivs(savedPrivs)