summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Paul Sladen2008-08-30 09:03:16 -0700
committerGravatar Matt Colyer2008-08-30 09:03:16 -0700
commitde4b279089d40131346cbd28e4f27b6e9716fab9 (patch)
tree6908b2e764c1579c3414416d420f7a9e5c687f1c /src/ifuse.c
parent6c715f8fe33e60d7d5cc2376fad405492bb329a6 (diff)
downloadlibplist-de4b279089d40131346cbd28e4f27b6e9716fab9.tar.gz
libplist-de4b279089d40131346cbd28e4f27b6e9716fab9.tar.bz2
Fixed permissions on directories.
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c2
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) {
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;