summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 2a33405..a9d1c9a 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -63,6 +63,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
63 stbuf->st_blocks = file->blocks; 63 stbuf->st_blocks = file->blocks;
64 stbuf->st_uid = getuid(); 64 stbuf->st_uid = getuid();
65 stbuf->st_gid = getgid(); 65 stbuf->st_gid = getgid();
66
67 afc_close_file(afc,file);
66 } 68 }
67 69
68 return res; 70 return res;
@@ -205,7 +207,7 @@ void *ifuse_init(struct fuse_conn_info *conn) {
205 port = lockdownd_start_service(control, "com.apple.afc"); 207 port = lockdownd_start_service(control, "com.apple.afc");
206 if (!port) { 208 if (!port) {
207 lockdownd_close(control); 209 lockdownd_close(control);
208 free_iphone(phone); 210 free_iPhone(phone);
209 fprintf(stderr, "Something went wrong when starting AFC."); 211 fprintf(stderr, "Something went wrong when starting AFC.");
210 return NULL; 212 return NULL;
211 } 213 }