From 6ac4ceb4c6ee63c279f4841381a3eb09598f3517 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Mon, 25 Aug 2008 23:25:56 +0200 Subject: migrate main.c --- src/AFC.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AFC.c') 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, 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; -- cgit v1.1-32-gdbae