diff options
author | Jonathan Beck | 2008-08-25 23:25:56 +0200 |
---|---|---|
committer | Jonathan Beck | 2008-08-31 19:32:27 +0200 |
commit | 6ac4ceb4c6ee63c279f4841381a3eb09598f3517 (patch) | |
tree | 37de86e9d99a56c2e4ef1e7b5db28bd252cd4a39 /src/AFC.c | |
parent | c042f7ca2731fa5c8a5aa13789f5901ae5a3af7a (diff) | |
download | libplist-6ac4ceb4c6ee63c279f4841381a3eb09598f3517.tar.gz libplist-6ac4ceb4c6ee63c279f4841381a3eb09598f3517.tar.bz2 |
migrate main.c
Diffstat (limited to 'src/AFC.c')
-rw-r--r-- | src/AFC.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -596,7 +596,7 @@ int iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename, if (!file){ ret = IPHONE_E_NO_SUCH_FILE; } 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; |