git-svn-id: file:///home/svn/framework3/trunk@12829 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2011-06-02 22:26:13 +00:00
parent e1c8e9032b
commit d62c65b11a
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ module System
# Keys are name, uid, gid, info, dir and shell
def get_users
users = []
cmd_out = `cat /etc/passwd`.split("\n")
cmd_out = cmd_exec("cat /etc/passwd").split("\n")
cmd_out.each do |l|
entry = {}
user_field = l.split(":")
@ -110,7 +110,7 @@ module System
# Keys are name, gid and users
def get_groups
groups = []
cmd_out = `cat /etc/group`.split("\n")
cmd_out = cmd_exec("cat /etc/group").split("\n")
cmd_out.each do |l|
entry = {}
user_field = l.split(":")