summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ifuse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index f6b9c72..d35564e 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -30,6 +30,7 @@
30#include <libxml/parser.h> 30#include <libxml/parser.h>
31#include <libxml/tree.h> 31#include <libxml/tree.h>
32#include <glib.h> 32#include <glib.h>
33#include <unistd.h>
33 34
34#include "usbmux.h" 35#include "usbmux.h"
35#include "iphone.h" 36#include "iphone.h"
@@ -57,6 +58,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
57 stbuf->st_size = file->size; 58 stbuf->st_size = file->size;
58 stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone? 59 stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone?
59 stbuf->st_blocks = file->blocks; 60 stbuf->st_blocks = file->blocks;
61 stbuf->st_uid = getuid();
62 stbuf->st_gid = getgid();
60 } 63 }
61 64
62 return res; 65 return res;