Skip to content

Commit

Permalink
* dir.c (dir_seek): should retrieve dir_data after NUM2INT().
Browse files Browse the repository at this point in the history
  [ruby-dev:24941]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Nov 21, 2004
1 parent 5809c72 commit fec64f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Nov 22 00:13:35 2004 Yukihiro Matsumoto <[email protected]>

* dir.c (dir_seek): should retrieve dir_data after NUM2INT().
[ruby-dev:24941]

Sat Nov 20 23:57:33 2004 Dave Thomas <[email protected]>

* lib/rdoc/README (et al): Add a new directive, :section:, and
Expand Down Expand Up @@ -138,6 +143,13 @@ Thu Nov 18 20:47:24 2004 NAKAMURA Usaku <[email protected]>
* win32/win32.[ch] (rb_w32_isatty): new function to replace MSVCRT's
isatty because it never sets errno.

Thu Nov 18 18:41:08 2004 Kazuhiro NISHIYAMA <[email protected]>

* test/ruby/test_stringchar.rb (test_bang): added.

* string.c (rb_str_upcase_bang, rb_str_capitalize_bang)
(rb_str_swapcase_bang): missing rb_str_modify().

Thu Nov 18 17:05:01 2004 Nobuyoshi Nakada <[email protected]>

* parse.y (f_rest_arg): store rest args into invisible local variabe
Expand Down
5 changes: 3 additions & 2 deletions dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,11 @@ dir_seek(dir, pos)
VALUE dir, pos;
{
struct dir_data *dirp;
off_t p = NUM2LONG(pos);

#ifdef HAVE_SEEKDIR
GetDIR(dir, dirp);
seekdir(dirp->dir, NUM2INT(pos));
#ifdef HAVE_SEEKDIR
seekdir(dirp->dir, p);
return dir;
#else
rb_notimplement();
Expand Down

0 comments on commit fec64f7

Please sign in to comment.