From b1f1e9d5d6fcde3cfd150c09c89383a52db255fb Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Tue, 25 Jun 2024 04:46:47 -0300 Subject: [PATCH] Fix typo --- lib/bsd/capsicum.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bsd/capsicum.rb b/lib/bsd/capsicum.rb index f2bfd48..a40eb7c 100644 --- a/lib/bsd/capsicum.rb +++ b/lib/bsd/capsicum.rb @@ -9,7 +9,7 @@ module BSD::Capsicum extend self ## - # Check if we're in capability mode. + # Check if we're in capability mode # # @see https://man.freebsd.org/cgi/man.cgi?query=cap_getmode&apropos=0&sektion=2&format=html cap_getmode(2) # @raise [SystemCallError] @@ -18,7 +18,6 @@ module BSD::Capsicum # Returns true when the current process is in capability mode def in_capability_mode? uintp = Fiddle::Pointer.malloc(Fiddle::SIZEOF_UINT) - FFI.cap_getmode(uintp) if FFI.cap_getmode(uintp).zero? uintp[0, Fiddle::SIZEOF_UINT].unpack("i") == [1] else