Chromium Code Reviews| Index: libraries/nacl-mounts/pepper/PepperMount.cc |
| =================================================================== |
| --- libraries/nacl-mounts/pepper/PepperMount.cc (revision 598) |
| +++ libraries/nacl-mounts/pepper/PepperMount.cc (working copy) |
| @@ -154,7 +154,8 @@ |
| if (node->is_dir()) { |
| memset(buf, 0, sizeof(struct stat)); |
| buf->st_ino = (ino_t)slot; |
| - buf->st_mode = S_IFDIR | 0777; |
| + buf->st_mode = S_IFDIR | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH |
|
Evgeniy Stepanov
2012/06/18 10:46:06
Why? Directories should be executable.
vissi
2012/06/18 10:56:44
Indeed. Fixed for files only below.
|
| + | S_IWOTH; |
| buf->st_size = 0; |
| buf->st_uid = 1001; |
| buf->st_gid = 1002; |