diff options
| author | 2026-06-10 09:51:55 +0200 | |
|---|---|---|
| committer | 2026-06-10 09:51:55 +0200 | |
| commit | fa0f79190142bc309307967c058f89c1b36eb6b8 (patch) | |
| tree | dd6c02495c59e73dcb8620b99673f17409a66814 | |
| parent | 38a80d7ec157cdf1afb047b6ff99bbfcc166473f (diff) | |
| download | libimobiledevice-fa0f79190142bc309307967c058f89c1b36eb6b8.tar.gz libimobiledevice-fa0f79190142bc309307967c058f89c1b36eb6b8.tar.bz2 | |
When using `--documents`, access is usually restricted to `/Documents`
so let's start in `/Documents`.
| -rw-r--r-- | tools/afcclient.c | 9 |
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 |
