Another io.popen call bites the dust.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
-- variables initialized in init()
username = nil,
homedir = nil,
- hostname = nil,
env = {},
tmpdirs = {},
tmpfiles = {},
e2lib.globals.tmpdir = e2lib.globals.osenv["TMPDIR"]
end
- -- get the host name
- local hostname = io.popen("hostname")
- if not hostname then
- return false, err.new("execution of \"hostname\" failed")
- end
-
- e2lib.globals.hostname = hostname:read("*a")
- hostname:close()
- if not e2lib.globals.hostname then
- return false, err.new("hostname ist not set")
- end
-
e2lib.globals.lock = lock.new()
return true