diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ifuse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ifuse.c b/src/ifuse.c index e07c939..7672bb9 100644 --- a/src/ifuse.c +++ b/src/ifuse.c | |||
| @@ -57,7 +57,7 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) { | |||
| 57 | if (!file){ | 57 | if (!file){ |
| 58 | res = -ENOENT; | 58 | res = -ENOENT; |
| 59 | } else { | 59 | } else { |
| 60 | stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever | 60 | stbuf->st_mode = file->type | (S_ISDIR(file->type) ? 0755 : 0644); |
| 61 | stbuf->st_size = file->size; | 61 | stbuf->st_size = file->size; |
| 62 | stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone? | 62 | stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone? |
| 63 | stbuf->st_blocks = file->blocks; | 63 | stbuf->st_blocks = file->blocks; |
