diff options
author | 2021-06-04 07:59:09 +0200 | |
---|---|---|
committer | 2021-06-04 08:25:46 +0200 | |
commit | 0dc82f0bc334c529977a873bcc243f46379cfbc8 (patch) | |
tree | 2f018c83569355467f6ad5f7196989f44a2a0177 /etc-fixes/0.9.52/firefox.profile | |
parent | Merge pull request #4325 from florianbegusch/fbegusch-improve-jail_prober.py (diff) | |
download | firejail-0dc82f0bc334c529977a873bcc243f46379cfbc8.tar.gz firejail-0dc82f0bc334c529977a873bcc243f46379cfbc8.tar.zst firejail-0dc82f0bc334c529977a873bcc243f46379cfbc8.zip |
Better error message for jail_prober.py cli usage
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>
```
Diffstat (limited to 'etc-fixes/0.9.52/firefox.profile')
0 files changed, 0 insertions, 0 deletions