* file.c (rb_file_chown): [ruby-dev:24949]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df32fdebd7
commit
941d135904
@ -1,3 +1,7 @@
|
|||||||
|
Tue Nov 23 02:00:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* file.c (rb_file_chown): [ruby-dev:24949]
|
||||||
|
|
||||||
Tue Nov 23 00:10:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Tue Nov 23 00:10:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* file.c (rb_file_chown): integer conversion should be prior to
|
* file.c (rb_file_chown): integer conversion should be prior to
|
||||||
|
2
file.c
2
file.c
@ -1832,9 +1832,9 @@ rb_file_chown(obj, owner, group)
|
|||||||
int o, g;
|
int o, g;
|
||||||
|
|
||||||
rb_secure(2);
|
rb_secure(2);
|
||||||
GetOpenFile(obj, fptr);
|
|
||||||
o = NUM2INT(owner);
|
o = NUM2INT(owner);
|
||||||
g = NUM2INT(group);
|
g = NUM2INT(group);
|
||||||
|
GetOpenFile(obj, fptr);
|
||||||
#if defined(DJGPP) || defined(__CYGWIN32__) || defined(_WIN32) || defined(__EMX__)
|
#if defined(DJGPP) || defined(__CYGWIN32__) || defined(_WIN32) || defined(__EMX__)
|
||||||
if (!fptr->path) return Qnil;
|
if (!fptr->path) return Qnil;
|
||||||
if (chown(fptr->path, o, g) == -1)
|
if (chown(fptr->path, o, g) == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user