mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
Curerently sys.argv is accessed without checks, resulting in an
IndexError:
```
Traceback (most recent call last):
File "/home/rusty-snake/Projects/firejail/contrib/jail_prober.py", line 205, in <module>
main()
File "/home/rusty-snake/Projects/firejail/contrib/jail_prober.py", line 170, in main
profile_path = sys.argv[1]
IndexError: list index out of range
```
This commit catches this IndexError and prints a more helpfull message
instaed:
```
USAGE: jail_prober.py <PROFILE-PATH> <PROGRAM>
```
|
||
|---|---|---|
| .. | ||
| vim | ||
| firejail-welcome.sh | ||
| fix_private-bin.py | ||
| fj-mkdeb.py | ||
| fjclip.py | ||
| fjdisplay.py | ||
| fjresize.py | ||
| gdb-firejail.sh | ||
| jail_prober.py | ||
| sort.py | ||
| syscalls.sh | ||
| update_deb.sh | ||