diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-07 14:28:36 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-07 14:28:36 +0000 |
| commit | ae28e8dd2c4e75ba727ce3e471ea0473f059aa02 (patch) | |
| tree | 063b543c41caca7c84daeea3a8717d1372c2b44d | |
| parent | 836118a5ed678a279b7ab198eb96f1e891b68efa (diff) | |
| download | ruby-ae28e8dd2c4e75ba727ce3e471ea0473f059aa02.tar.gz ruby-ae28e8dd2c4e75ba727ce3e471ea0473f059aa02.tar.xz ruby-ae28e8dd2c4e75ba727ce3e471ea0473f059aa02.zip | |
* file.c (path_check_0, fpath_check): disable path check on cygwin.
[ruby-talk:213074]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | file.c | 14 |
2 files changed, 16 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Thu Sep 7 23:27:05 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * file.c (path_check_0, fpath_check): disable path check on cygwin. + [ruby-talk:213074] + Wed Sep 06 12:05:19 2006 NARUSE, Yui <naruse@ruby-lang.org> * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for euc-jp @@ -4097,7 +4097,15 @@ is_absolute_path(path) return 0; } -#ifndef DOSISH +#ifndef ENABLE_PATH_CHECK +# if defined DOSISH || defined __CYGWIN__ +# define ENABLE_PATH_CHECK 0 +# else +# define ENABLE_PATH_CHECK 1 +# endif +#endif + +#if ENABLE_PATH_CHECK static int path_check_0(fpath, execpath) VALUE fpath; @@ -4145,7 +4153,7 @@ static int fpath_check(path) char *path; { -#ifndef DOSISH +#if ENABLE_PATH_CHECK return path_check_0(rb_str_new2(path), Qfalse); #else return 1; @@ -4156,7 +4164,7 @@ int rb_path_check(path) char *path; { -#ifndef DOSISH +#if ENABLE_PATH_CHECK char *p0, *p, *pend; const char sep = PATH_SEP_CHAR; |
