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)
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