summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-06-18 15:36:18 +0200
committertv <tv@krebsco.de>2017-06-18 15:49:54 +0200
commit9f75e81c5f91aa4236f86c29437de190503ad586 (patch)
tree44030457fe5589d2b7e090528d0e56cee88b5fa7 /krebs/3modules
parentce89fd63d5d3ed3dc701b11a79d392294d35bd76 (diff)
lib: add test and testString
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/setuid.nix4
1 files changed, 1 insertions, 3 deletions
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;
};
};