summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-22 17:02:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-22 17:02:45 +0000
commit941d1359043bbb52e14eba9cfcc90292b4ddaa4b (patch)
treebc63899850571183f6b08501e3776a2070969dda /file.c
parentdf32fdebd7a60b2315c0b0658d575314f0dc0b4a (diff)
* 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
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 8f5fd24484..b185d0cd59 100644
--- a/file.c
+++ b/file.c
@@ -1832,9 +1832,9 @@ rb_file_chown(obj, owner, group)
int o, g;
rb_secure(2);
- GetOpenFile(obj, fptr);
o = NUM2INT(owner);
g = NUM2INT(group);
+ GetOpenFile(obj, fptr);
#if defined(DJGPP) || defined(__CYGWIN32__) || defined(_WIN32) || defined(__EMX__)
if (!fptr->path) return Qnil;
if (chown(fptr->path, o, g) == -1)