summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2026-06-10 09:51:55 +0200
committerGravatar Nikias Bassen2026-06-10 09:51:55 +0200
commitfa0f79190142bc309307967c058f89c1b36eb6b8 (patch)
treedd6c02495c59e73dcb8620b99673f17409a66814 /tools
parent38a80d7ec157cdf1afb047b6ff99bbfcc166473f (diff)
downloadlibimobiledevice-fa0f79190142bc309307967c058f89c1b36eb6b8.tar.gz
libimobiledevice-fa0f79190142bc309307967c058f89c1b36eb6b8.tar.bz2
tools/afcclient: Start in /Documents when using --documentsHEADmaster
When using `--documents`, access is usually restricted to `/Documents` so let's start in `/Documents`.
Diffstat (limited to 'tools')
-rw-r--r--tools/afcclient.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/afcclient.c b/tools/afcclient.c
index e71aea4..c2e2ce3 100644
--- a/tools/afcclient.c
+++ b/tools/afcclient.c
@@ -1618,8 +1618,13 @@ int main(int argc, char** argv)
1618 lockdownd_client_free(lockdown); 1618 lockdownd_client_free(lockdown);
1619 lockdown = NULL; 1619 lockdown = NULL;
1620 1620
1621 curdir = strdup("/"); 1621 if (appid && !use_container) {
1622 curdir_len = 1; 1622 curdir = strdup("/Documents");
1623 curdir_len = 10;
1624 } else {
1625 curdir = strdup("/");
1626 curdir_len = 1;
1627 }
1623 1628
1624 if (argc > 0) { 1629 if (argc > 0) {
1625 // command line mode 1630 // command line mode