Skip to content

Commit

Permalink
* file.c (rb_file_s_lstat): Back out.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed Mar 23, 2009
1 parent fe3de99 commit 61e6f9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Mon Mar 23 19:22:14 2009 Akinori MUSHA <[email protected]>

* file.c (rb_file_s_lstat): Back out.

Mon Mar 23 18:54:57 2009 Akinori MUSHA <[email protected]>

* file.c (rb_file_s_stat, rb_file_s_lstat): Remove repeated type
Expand Down
2 changes: 1 addition & 1 deletion file.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ rb_file_s_lstat(VALUE klass, VALUE fname)

rb_secure(2);
FilePathValue(fname);
if (lstat(fname, &st) == -1) {
if (lstat(StringValueCStr(fname), &st) == -1) {
rb_sys_fail(RSTRING_PTR(fname));
}
return stat_new(&st);
Expand Down

0 comments on commit 61e6f9b

Please sign in to comment.