summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2006-08-19 20:23:22 +0000
committerRoger Leigh <rleigh@debian.org>2006-08-19 20:23:22 +0000
commitcfb0da61c2443149dddd017da5605ace1d2bd5c4 (patch)
tree7d88689abd42f10df3af40f6345709b54b1ad91f /HACKING
parente5e53478a126fda7f071cbcb65bed459fb271954 (diff)
downloadschroot-cfb0da61c2443149dddd017da5605ace1d2bd5c4.tar.gz
* HACKING: Document additional directory fallback checks.
* schroot/schroot.1.in, dchroot/dchroot.1.in, dchroot-dsa/dchroot-dsa.1.in: Document directory option. * schroot/schroot-main-base.cc (run_impl): If a directory option was specified, set the auth wd member. * schroot/schroot-options.cc, dchroot/dchroot-options.cc, dchroot-dsa/dchroot-dsa-options.cc: (add_options): Add directory option. * schroot/schroot-options-base.h: Add directory member, used to specify the directory inside the chroot.
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING26
1 files changed, 22 insertions, 4 deletions
diff --git a/HACKING b/HACKING
index b2513e75..28c1da13 100644
--- a/HACKING
+++ b/HACKING
@@ -84,16 +84,34 @@ Chdir fallback behaviour:
No fallbacks should exist under any circumstances.
- dchroot
- CWD → passwd_pw dir Normal behaviour (not if -d used)
+ schroot [--directory used]
+ CWD → DIR Normal behaviour
+ *FAIL* If CWD nonexistent
+
+ No fallbacks should exist under any circumstances.
+
+ dchroot [login shell or command]
+ CWD → passwd pw_dir Normal behaviour (not if -d used)
CWD → CWD If -d used
CWD → / If CWD nonexistent and -d used
*FAIL* If / nonexistent
- dchroot-dsa
- CWD → passwd_pw dir Normal behaviour
+ dchroot [--directory used]
+ CWD → DIR Normal behaviour
+ *FAIL* If CWD nonexistent
+
+ No fallbacks should exist under any circumstances.
+
+ dchroot-dsa [login shell or command]
+ CWD → passwd pw_dir Normal behaviour
CWD → / If no passwd_pw dir
*FAIL* If / nonexistent
+ dchroot-dsa [--directory used]
+ CWD → DIR Normal behaviour
+ *FAIL* If CWD nonexistent
+
+ No fallbacks should exist under any circumstances.
+
Note that --debug=notice will show the internal fallback list
computed for the session.