-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
netblue30
committed
Apr 20, 2018
1 parent
b6156fd
commit 3fe1b06
Showing
18 changed files
with
61 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,31 @@ | ||
#!/usr/bin/expect -f | ||
# This file is part of Firejail project | ||
# Copyright (C) 2014-2018 Firejail Authors | ||
# License GPL v2 | ||
|
||
set timeout 10 | ||
cd /home | ||
spawn $env(SHELL) | ||
match_max 100000 | ||
|
||
send -- "firejail --private --tracelog --csh\r" | ||
send -- "firejail --private --shell=/bin/csh\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 0\n";exit} | ||
"Child process initialized" | ||
} | ||
sleep 1 | ||
|
||
send -- "find ~\r" | ||
send -- "env | grep SHELL;pwd\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 1\n";exit} | ||
".cshrc" | ||
} | ||
|
||
send -- "env | grep SHELL\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 2\n";exit} | ||
"SHELL" | ||
"SHELL" | ||
} | ||
expect { | ||
timeout {puts "TESTING ERROR 2.1\n";exit} | ||
timeout {puts "TESTING ERROR 2\n";exit} | ||
"/bin/csh" | ||
} | ||
send -- "exit\r" | ||
sleep 1 | ||
|
||
send -- "firejail --shell=none --csh\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 3\n";exit} | ||
"shell=none was already specified" | ||
} | ||
after 100 | ||
|
||
send -- "firejail --csh --shell=none\r" | ||
expect { | ||
timeout {puts "TESTING ERROR 4\n";exit} | ||
"a shell was already specified" | ||
"home" | ||
} | ||
send -- "exit\r" | ||
after 100 | ||
|
||
puts "\n" | ||
puts "\nall done\n" |
Oops, something went wrong.
@netblue30 Is "deprecated" the right word? If I see it correctly, you removed --csh and --zsh, not deprecated it. (deprecated would mean it's still usable, but is announced to be removed in the future)