Skip to content

Commit

Permalink
revert the masking off from 34e024a as it's ruby specific
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Apr 18, 2010
1 parent 79b6c76 commit f0a1a83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/org/jruby/ext/posix/JavaFileStat.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ private short calculateMode(File file, short st_mode) {

if (file.canWrite()) {
st_mode |= ALL_WRITE;
st_mode &= ~(S_IWGRP | S_IWOTH);
}

if (file.isDirectory()) {
Expand Down
2 changes: 1 addition & 1 deletion src/org/jruby/ext/posix/WindowsFileStat.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public long ino() {
}

public int mode() {
return st_mode.get() & ~(S_IWGRP | S_IWOTH) & 0xffff;
return st_mode.get() & 0xffff;
}

public long mtime() {
Expand Down

0 comments on commit f0a1a83

Please sign in to comment.