mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (path_check_0, fpath_check): disable path check on cygwin.
[ruby-talk:213074] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c390e61a86
commit
585c61691e
2 changed files with 16 additions and 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]
|
||||||
|
|
||||||
Thu Sep 7 01:54:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Sep 7 01:54:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (sym_equal): override. check equivalence.
|
* string.c (sym_equal): override. check equivalence.
|
||||||
|
|
14
file.c
14
file.c
|
@ -4044,7 +4044,15 @@ is_absolute_path(const char *path)
|
||||||
return 0;
|
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
|
static int
|
||||||
path_check_0(VALUE path, int execpath)
|
path_check_0(VALUE path, int execpath)
|
||||||
{
|
{
|
||||||
|
@ -4089,7 +4097,7 @@ path_check_0(VALUE path, int execpath)
|
||||||
static int
|
static int
|
||||||
fpath_check(const char *path)
|
fpath_check(const char *path)
|
||||||
{
|
{
|
||||||
#ifndef DOSISH
|
#if ENABLE_PATH_CHECK
|
||||||
return path_check_0(rb_str_new2(path), Qfalse);
|
return path_check_0(rb_str_new2(path), Qfalse);
|
||||||
#else
|
#else
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -4099,7 +4107,7 @@ fpath_check(const char *path)
|
||||||
int
|
int
|
||||||
rb_path_check(const char *path)
|
rb_path_check(const char *path)
|
||||||
{
|
{
|
||||||
#ifndef DOSISH
|
#if ENABLE_PATH_CHECK
|
||||||
const char *p0, *p, *pend;
|
const char *p0, *p, *pend;
|
||||||
const char sep = PATH_SEP_CHAR;
|
const char sep = PATH_SEP_CHAR;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue