tools/afcclient: Start in /Documents when using --documents When using `--documents`, access is usually restricted to `/Documents` so let's start in `/Documents`.
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 @@ lockdownd_client_free(lockdown); lockdown = NULL; - curdir = strdup("/"); - curdir_len = 1; + if (appid && !use_container) { + curdir = strdup("/Documents"); + curdir_len = 10; + } else { + curdir = strdup("/"); + curdir_len = 1; + } if (argc > 0) { // command line mode