Skip to content

Commit

Permalink
Switch to Stat.from_fd for fixing File#stat on an unlinked file
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Nov 23, 2009
1 parent 52c06be commit f328426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/common/file.rb
Expand Up @@ -788,7 +788,7 @@ def mtime
end

def stat
Stat.new @path
Stat.from_fd @descriptor
end

def truncate(length)
Expand Down

0 comments on commit f328426

Please sign in to comment.