summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-24 16:03:54 +0200
committerGravatar Martin Szulecki2009-07-24 16:03:54 +0200
commitbe7fc51d8a7de5809c4889e7453373bce8bebaaf (patch)
tree06f850ea35e9adc9fc09a234f5fcf23f9a0c434c /src/ifuse.c
parentae4bee9d8da1f9a5b532b897a6e2fc45d525372e (diff)
downloadifuse-be7fc51d8a7de5809c4889e7453373bce8bebaaf.tar.gz
ifuse-be7fc51d8a7de5809c4889e7453373bce8bebaaf.tar.bz2
Improve message when connecting to lockdown fails and fix two comments
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index b53b8ef..2ca64d2 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -37,7 +37,8 @@ typedef uint32_t uint32; // this annoys me too
#include <libiphone/lockdown.h>
#include <libiphone/afc.h>
-int g_blocksize = 4096; // assume this is the default block size
+/* assume this is the default block size */
+int g_blocksize = 4096;
iphone_device_t phone = NULL;
lockdownd_client_t control = NULL;
@@ -428,13 +429,12 @@ void *ifuse_init_jailbroken(struct fuse_conn_info *conn)
return ifuse_init_with_service(conn, "com.apple.afc2");
}
-
static struct fuse_operations ifuse_oper = {
.getattr = ifuse_getattr,
.statfs = ifuse_statfs,
.readdir = ifuse_readdir,
.mkdir = ifuse_mkdir,
- .rmdir = ifuse_unlink, // AFC uses the same op for both.
+ .rmdir = ifuse_unlink,
.create = ifuse_create,
.open = ifuse_open,
.read = ifuse_read,
@@ -504,9 +504,10 @@ int main(int argc, char *argv[])
return 0;
}
- if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &control)) {
+ if (IPHONE_E_SUCCESS != lockdownd_client_new(phone, &control)) {
iphone_free_device(phone);
- fprintf(stderr, "Something went in lockdown handshake.\n");
+ fprintf(stderr, "Failed to connect to lockdownd service on the device.\n");
+ fprintf(stderr, "Try again. If it still fails try rebooting your device.\n");
return 0;
}