From: matz@... (Yukihiro Matsumoto) Date: 2000-03-10T18:14:49+09:00 Subject: [ruby-talk:01799] Re: [ruby-1.5.3] path_check_1 In message "[ruby-talk:01790] [ruby-1.5.3] path_check_1" on 00/03/09, ts writes: | I don't understand these lines in file.c (snip) This is a genuine bug. Here's the patch. --- file.c 2000/03/07 08:37:30 1.15 +++ file.c 2000/03/10 09:00:45 @@ -1959,5 +1959,5 @@ #ifdef HAVE_GETCWD - if (getcwd(path, sizeof(path)) == 0) return 0; + if (getcwd(buf, MAXPATHLEN) == 0) return 0; #else - if (getwd(path) == 0) return 0; + if (getwd(buf) == 0) return 0; #endif