Skip to content

Commit

Permalink
Rescue uid/gid lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Mar 3, 2010
1 parent ed1356b commit 44a5b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions colfm.rb
Expand Up @@ -341,11 +341,11 @@ def modestring
end

def user
Etc.getpwuid(@lstat.uid).name
Etc.getpwuid(@lstat.uid).name rescue @lstat.uid.to_s
end

def group
Etc.getgrgid(@lstat.gid).name
Etc.getgrgid(@lstat.gid).name rescue @lstat.gid.to_s
end

# Inspired by busybox.
Expand Down

0 comments on commit 44a5b62

Please sign in to comment.