diff options
| author | 2008-08-19 23:41:25 -0700 | |
|---|---|---|
| committer | 2008-08-19 23:41:25 -0700 | |
| commit | 24718e493bf8bc5933a598a490f93921765b7064 (patch) | |
| tree | 4596b1e9b34f25ff3ab6ccd30810704f0393509e | |
| parent | a55c3e762bceab49be53a76381ad28f818fb70b6 (diff) | |
| download | libimobiledevice-24718e493bf8bc5933a598a490f93921765b7064.tar.gz libimobiledevice-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)
| -rw-r--r-- | src/ifuse.c | 3 |
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; |
