Bug with fs.chmod(path, mode)?

9 views
Skip to first unread message

Eric Dykstra

unread,
May 14, 2014, 8:37:20 PM5/14/14
to sil...@googlegroups.com
Hey everyone,

If I execute this:

      chmod_OK = fs.chmod(file_spec, fs.S_IRUSR | fs.S_IWUSR | fs.S_IXUSR | fs.S_IRGRP | fs.S_IWGRP | fs.S_IXGRP | fs.S_IROTH | fs.S_IWOTH | fs.S_IXOTH );

The file ends up being '767' instead of '777':

      -rwxrw-rwx 1 www-data www-data 149552 May 14 20:31 test.jpg

What am I doing wrong?

Thanks,

Eric

Eric Dykstra

unread,
May 14, 2014, 8:48:32 PM5/14/14
to sil...@googlegroups.com
I just went ahead and specified an octal 0777 for now, But, while debugging, I ran into the issue and figured I should post it.
Reply all
Reply to author
Forward
0 new messages