summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 56a139f7b2..bacb7aaa30 100644
--- a/file.c
+++ b/file.c
@@ -929,7 +929,7 @@ file_chmod(obj, vmode)
mode = NUM2INT(vmode);
GetOpenFile(obj, fptr);
-#if defined(DJGPP) || defined(__CYGWIN32__) || defined(NT)
+#if defined(DJGPP) || defined(NT)
if (chmod(fptr->path, mode) == -1)
rb_sys_fail(fptr->path);
#else
@@ -1162,7 +1162,7 @@ file_s_umask(argc, argv)
int omask = 0;
if (argc == 0) {
- int omask = umask(0);
+ omask = umask(0);
umask(omask);
}
else if (argc == 1) {