summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-08-19 23:41:25 -0700
committerGravatar Matt Colyer2008-08-19 23:41:25 -0700
commit24718e493bf8bc5933a598a490f93921765b7064 (patch)
tree4596b1e9b34f25ff3ab6ccd30810704f0393509e /src
parenta55c3e762bceab49be53a76381ad28f818fb70b6 (diff)
downloadlibplist-24718e493bf8bc5933a598a490f93921765b7064.tar.gz
libplist-24718e493bf8bc5933a598a490f93921765b7064.tar.bz2
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)
Diffstat (limited to 'src')
-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 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <glib.h>
+#include <unistd.h>
#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;