lib/daemons/etc_extension.rb in daemons-1.2.3 vs lib/daemons/etc_extension.rb in daemons-1.2.4
- old
+ new
@@ -1,13 +1,11 @@
require 'etc'
Etc.instance_eval do
def groupname(gid)
Etc.group { |e| return e.name if gid == e.gid }
- nil
end
def username(uid)
Etc.passwd { |e| return e.name if uid == e.uid }
- nil
end
end