Skip to content

Commit

Permalink
should not be infected from other load paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Dec 30, 2011
1 parent 20d5fc0 commit 6ac52bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion file.c
Expand Up @@ -840,7 +840,7 @@ rb_file_s_lstat(VALUE klass, SEL sel, VALUE fname)
static VALUE
rb_file_lstat(VALUE obj, SEL sel)
{
#if HAVE_LSTAT
#ifdef HAVE_LSTAT
rb_io_t *io;
struct stat st;
VALUE path;
Expand Down Expand Up @@ -4239,6 +4239,7 @@ rb_find_file_ext_safe(VALUE *filep, const char *const *ext, int safe_level)
*filep = copy_path_class(tmp, *filep);
return (int)(j+1);
}
FL_UNSET(tmp, FL_TAINT | FL_UNTRUSTED);
}
rb_str_set_len(fname, fnlen);
}
Expand Down

0 comments on commit 6ac52bc

Please sign in to comment.