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