From 9f75e81c5f91aa4236f86c29437de190503ad586 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 18 Jun 2017 15:36:18 +0200 Subject: lib: add test and testString --- krebs/3modules/setuid.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'krebs/3modules') diff --git a/krebs/3modules/setuid.nix b/krebs/3modules/setuid.nix index c9677fd24..a17ec0883 100644 --- a/krebs/3modules/setuid.nix +++ b/krebs/3modules/setuid.nix @@ -47,9 +47,7 @@ let type = mkOptionType { # TODO admit symbolic mode name = "octal mode"; - check = x: - isString x && - match "[0-7][0-7][0-7][0-7]" x != null; + check = test "[0-7][0-7][0-7][0-7]"; merge = mergeOneOption; }; }; -- cgit v1.2.3