Add sysdef!

This commit is contained in:
0x1eef 2024-02-29 23:03:28 -03:00
parent d66df7f0b8
commit 507ef2aa4b

View file

@ -37,6 +37,21 @@ module BSD::Control
set!(path, BSD::Control::Disable)
end
##
# Restore system defaults.
#
# @param [String] path
# The path to an executable.
#
# @raise [BSD::Control::Error]
# When the operation fails.
#
# @return [Boolean]
# Returns true on success.
def sysdef!(path)
set!(path, BSD::Control::SysDef)
end
##
# @group Predicates
@ -104,5 +119,6 @@ module BSD::Control
end
# @endgroup
private :set!
end
end