summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--file.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b5963e..5b3f45a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* file.c (rb_file_chown): integer conversion should be prior to
diff --git a/file.c b/file.c
index c1f26ab..30c07e0 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)