summaryrefslogtreecommitdiffstats
path: root/src/AFC.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/AFC.c')
-rw-r--r--src/AFC.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 7b6608f..64a26b0 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -596,7 +596,7 @@ int iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename,
596 if (!file){ 596 if (!file){
597 ret = IPHONE_E_NO_SUCH_FILE; 597 ret = IPHONE_E_NO_SUCH_FILE;
598 } else { 598 } else {
599 stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever 599 stbuf->st_mode = file->type | (S_ISDIR(file->type) ? 0755 : 0644);
600 stbuf->st_size = file->size; 600 stbuf->st_size = file->size;
601 stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone? 601 stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone?
602 stbuf->st_blocks = file->blocks; 602 stbuf->st_blocks = file->blocks;