blob: 2ec79b9829e8ff7f28582424ef831b6233d8c503 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// A little bug patched in jail 1.9 (it didn't set the shell correctly in /etc/shells)
// v1.0a
// by Bugghy (bugghy@rootshell.be)
*** ../lib/arch/generic/functions Fri Oct 26 12:36:09 2001
--- ../lib/arch/generic/functions Sat Jun 14 13:41:22 2003
***************
*** 823,829 ****
close(F);
for $k (@elem) {
! if ($k =~ /^$INSTALL_DIR\/jail/) {
$found = 1;
last;
}
--- 823,829 ----
close(F);
for $k (@elem) {
! if ($k =~ /^$INSTALL_DIR\/bin\/jail/) {
$found = 1;
last;
}
***************
*** 831,837 ****
if (!$found || !-e $SHELLS_FILE) {
open(F,">>".$SHELLS_FILE);
! print F "$INSTALL_DIR/jail\n";
close(F);
}
}
--- 831,837 ----
if (!$found || !-e $SHELLS_FILE) {
open(F,">>".$SHELLS_FILE);
! print F "$INSTALL_DIR/bin/jail\n";
close(F);
}
}
|