summaryrefslogtreecommitdiffstats
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
commit6237c44bcb2ca50602ce3335cfe21c57f53a30df (patch)
treefc8690139d619774f6003dc0cb2709887190f2ec /file.c
parent71f9ebf59d9218838092a41675901267b4377da7 (diff)
downloadruby-6237c44bcb2ca50602ce3335cfe21c57f53a30df.tar.gz
ruby-6237c44bcb2ca50602ce3335cfe21c57f53a30df.tar.xz
ruby-6237c44bcb2ca50602ce3335cfe21c57f53a30df.zip
* file.c (rb_file_chown): [ruby-dev:24949]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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 c1f26ab69..30c07e006 100644
--- a/file.c
+++ b/file.c
@@ -1747,9 +1747,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)