Commit 24718e49 authored by Matt Colyer's avatar Matt Colyer

Made files owned to the user and group which started iFuse (we don't want to...

Made files owned to the user and group which started iFuse (we don't want to use the groups and users used on the iPhone)
parent a55c3e76
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <libxml/parser.h> #include <libxml/parser.h>
#include <libxml/tree.h> #include <libxml/tree.h>
#include <glib.h> #include <glib.h>
#include <unistd.h>
#include "usbmux.h" #include "usbmux.h"
#include "iphone.h" #include "iphone.h"
...@@ -57,6 +58,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) { ...@@ -57,6 +58,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
stbuf->st_size = file->size; stbuf->st_size = file->size;
stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone? stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone?
stbuf->st_blocks = file->blocks; stbuf->st_blocks = file->blocks;
stbuf->st_uid = getuid();
stbuf->st_gid = getgid();
} }
return res; return res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment