mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-01 05:19:02 +01:00
Mostly white space, style, and luacheck compliance. Signed-off-by: Jose Luis Duran <[email protected]>
17 lines
343 B
Lua
17 lines
343 B
Lua
#!/usr/libexec/flua
|
|
|
|
local n = require("nuage")
|
|
|
|
if n.addgroup() then
|
|
n.err("addgroup should not accept empty value")
|
|
end
|
|
if n.addgroup("plop") then
|
|
n.err("addgroup should not accept empty value")
|
|
end
|
|
local gr = {}
|
|
gr.name = "impossible_groupname"
|
|
local res = n.addgroup(gr)
|
|
if not res then
|
|
n.err("valid addgroup should return a path")
|
|
end
|