Commit de4b2790 authored by Paul Sladen's avatar Paul Sladen Committed by Matt Colyer

Fixed permissions on directories.

Signed-off-by: 's avatarMatt Colyer <matt@colyer.name>
parent 6c715f8f
......@@ -4,3 +4,4 @@ Matt Colyer
Martin Aumueller
Christophe Fergeau
Martin S.
Paul Sladen
......@@ -57,7 +57,7 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
if (!file){
res = -ENOENT;
} else {
stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever
stbuf->st_mode = file->type | (S_ISDIR(file->type) ? 0755 : 0644);
stbuf->st_size = file->size;
stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone?
stbuf->st_blocks = file->blocks;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment