From 24718e493bf8bc5933a598a490f93921765b7064 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Tue, 19 Aug 2008 23:41:25 -0700 Subject: 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) --- src/ifuse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 @@ #include #include #include +#include #include "usbmux.h" #include "iphone.h" @@ -57,6 +58,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) { 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; + stbuf->st_uid = getuid(); + stbuf->st_gid = getgid(); } return res; -- cgit v1.1-32-gdbae