marschall / memoryfilesystem

An in memory implementation of a JSR-203 file system
284 stars 36 forks source link

The meaning of umask when a Linux fs is created is inverted #44

Closed fge closed 9 years ago

fge commented 9 years ago

When you use .setUmask() on the Linux memory fs builder, it sets the mask applied to all file creations as in:

mode | umask

But this is not the meaning of an umask! u is for Undo, it is the set of permissions to be removed from each mode:

mode & ~umask
fge commented 9 years ago

Thank you soo much!

When do you plan to release a new version with this included?

marschall commented 9 years ago

I just pushed it to Maven Central. I don't know how fast the sync works, but it may take several hours until it's visible.