Linux localhost 6.1.10-x86_64-linode159 #1 SMP PREEMPT_DYNAMIC Wed Feb 8 14:14:45 EST 2023 x86_64
Apache/2.4.25 (Debian)
Server IP : 45.33.61.127 & Your IP : 216.73.216.156
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
2to3
96
B
-rwxr-xr-x
2020-08-22 10:03
2to3-2.7
96
B
-rwxr-xr-x
2020-08-22 10:03
2to3-3.5
96
B
-rwxr-xr-x
2020-11-18 21:09
[
50.79
KB
-rwxr-xr-x
2017-02-22 12:23
ab
50.18
KB
-rwxr-xr-x
2019-10-13 15:43
addpart
22.53
KB
-rwxr-xr-x
2018-03-07 18:29
apropos
46.98
KB
-rwxr-xr-x
2016-12-13 13:10
apt
14.09
KB
-rwxr-xr-x
2020-12-07 12:45
apt-cache
78.16
KB
-rwxr-xr-x
2020-12-07 12:45
apt-cdrom
22.16
KB
-rwxr-xr-x
2020-12-07 12:45
apt-config
22.09
KB
-rwxr-xr-x
2020-12-07 12:45
apt-extracttemplates
22.16
KB
-rwxr-xr-x
2020-12-07 12:45
apt-ftparchive
238.16
KB
-rwxr-xr-x
2020-12-07 12:45
apt-get
42.16
KB
-rwxr-xr-x
2020-12-07 12:45
apt-key
25.65
KB
-rwxr-xr-x
2020-12-07 12:45
apt-listchanges
8.88
KB
-rwxr-xr-x
2017-04-10 21:14
apt-mark
42.16
KB
-rwxr-xr-x
2020-12-07 12:45
apt-sortpkgs
38.09
KB
-rwxr-xr-x
2020-12-07 12:45
arch
34.76
KB
-rwxr-xr-x
2017-02-22 12:23
aria_chk
4.76
MB
-rwxr-xr-x
2021-01-31 16:38
aria_dump_log
4.56
MB
-rwxr-xr-x
2021-01-31 16:38
aria_ftdump
4.58
MB
-rwxr-xr-x
2021-01-31 16:38
aria_pack
4.6
MB
-rwxr-xr-x
2021-01-31 16:38
aria_read_log
4.72
MB
-rwxr-xr-x
2021-01-31 16:38
awk
646.72
KB
-rwxr-xr-x
2017-01-25 16:06
b2sum
54.88
KB
-rwxr-xr-x
2017-02-22 12:23
base32
38.79
KB
-rwxr-xr-x
2017-02-22 12:23
base64
38.79
KB
-rwxr-xr-x
2017-02-22 12:23
basename
30.73
KB
-rwxr-xr-x
2017-02-22 12:23
bashbug
6.95
KB
-rwxr-xr-x
2017-05-15 19:45
bootctl
38.41
KB
-rwxr-xr-x
2019-07-21 18:43
bsd-from
10.3
KB
-rwxr-xr-x
2017-04-12 11:22
bsd-write
14.42
KB
-rwxr-sr-x
2017-04-12 11:22
buildhash
38.38
KB
-rwxr-xr-x
2016-03-04 07:59
busctl
62.43
KB
-rwxr-xr-x
2019-07-21 18:43
c2ph
35.89
KB
-rwxr-xr-x
2020-06-20 17:33
c_rehash
6.18
KB
-rwxr-xr-x
2020-12-11 09:22
cal
29.21
KB
-rwxr-xr-x
2017-04-12 11:22
calendar
31.24
KB
-rwxr-xr-x
2017-04-12 11:22
captoinfo
78.11
KB
-rwxr-xr-x
2017-12-28 09:47
catchsegv
3.22
KB
-rwxr-xr-x
2019-02-06 21:17
catman
34.46
KB
-rwxr-xr-x
2016-12-13 13:10
certbot
385
B
-rwxr-xr-x
2020-09-26 18:25
chage
70.17
KB
-rwxr-sr-x
2017-05-17 11:59
chardet3
309
B
-rwxr-xr-x
2016-02-10 10:46
chardetect3
309
B
-rwxr-xr-x
2016-02-10 10:46
chattr
14
KB
-rwxr-xr-x
2020-07-25 09:03
chcon
63.01
KB
-rwxr-xr-x
2017-02-22 12:23
checkgid
5.99
KB
-rwxr-xr-x
2019-10-13 15:43
chfn
48.87
KB
-rwsr-xr-x
2017-05-17 11:59
chrt
30.76
KB
-rwxr-xr-x
2018-03-07 18:29
chsh
39.55
KB
-rwsr-xr-x
2017-05-17 11:59
cifsiostat
30.13
KB
-rwxr-xr-x
2017-05-25 20:26
ckbcomp
146.32
KB
-rwxr-xr-x
2017-04-07 03:55
cksum
34.76
KB
-rwxr-xr-x
2017-02-22 12:23
clear
5.99
KB
-rwxr-xr-x
2017-12-28 09:47
clear_console
10.3
KB
-rwxr-xr-x
2017-05-15 19:45
cmp
42.74
KB
-rwxr-xr-x
2017-01-09 22:55
codepage
10.27
KB
-rwxr-xr-x
2016-01-05 16:55
col
10.29
KB
-rwxr-xr-x
2017-04-12 11:22
colcrt
10.26
KB
-rwxr-xr-x
2017-04-12 11:22
colrm
10.25
KB
-rwxr-xr-x
2017-04-12 11:22
column
14.41
KB
-rwxr-xr-x
2017-04-12 11:22
comm
38.79
KB
-rwxr-xr-x
2017-02-22 12:23
compose
17.74
KB
-rwxr-xr-x
2016-05-01 11:20
corelist
12.53
KB
-rwxr-xr-x
2020-06-20 17:33
cpan
7.41
KB
-rwxr-xr-x
2020-06-20 17:33
cpan5.24-x86_64-linux-gnu
7.43
KB
-rwxr-xr-x
2020-06-20 17:33
crontab
39.32
KB
-rwxr-sr-x
2017-10-07 13:38
csplit
46.95
KB
-rwxr-xr-x
2017-02-22 12:23
ctstat
18.8
KB
-rwxr-xr-x
2017-11-24 09:22
curl
194.07
KB
-rwxr-xr-x
2020-12-17 19:12
cut
42.85
KB
-rwxr-xr-x
2017-02-22 12:23
dbilogstrip
1.35
KB
-rwxr-xr-x
2020-09-21 15:33
dbiprof
6.06
KB
-rwxr-xr-x
2020-09-21 15:33
dbiproxy
5.27
KB
-rwxr-xr-x
2020-09-21 15:33
dbus-cleanup-sockets
9.98
KB
-rwxr-xr-x
2020-07-02 19:36
dbus-daemon
218.95
KB
-rwxr-xr-x
2020-07-02 19:36
dbus-monitor
21.99
KB
-rwxr-xr-x
2020-07-02 19:36
dbus-run-session
9.98
KB
-rwxr-xr-x
2020-07-02 19:36
dbus-send
25.98
KB
-rwxr-xr-x
2020-07-02 19:36
dbus-update-activation-environment
13.98
KB
-rwxr-xr-x
2020-07-02 19:36
dbus-uuidgen
9.98
KB
-rwxr-xr-x
2020-07-02 19:36
deallocvt
10.38
KB
-rwxr-xr-x
2016-01-05 16:55
deb-systemd-helper
19.67
KB
-rwxr-xr-x
2017-05-02 10:20
deb-systemd-invoke
4.4
KB
-rwxr-xr-x
2017-05-02 10:20
debconf
2.79
KB
-rwxr-xr-x
2017-05-21 17:08
debconf-apt-progress
11.27
KB
-rwxr-xr-x
2017-05-21 17:08
debconf-communicate
608
B
-rwxr-xr-x
2017-05-21 17:08
debconf-copydb
1.68
KB
-rwxr-xr-x
2017-05-21 17:08
debconf-escape
647
B
-rwxr-xr-x
2017-05-21 17:08
debconf-set-selections
2.87
KB
-rwxr-xr-x
2017-05-21 17:08
debconf-show
1.78
KB
-rwxr-xr-x
2017-05-21 17:08
defmt-c
5.99
KB
-rwxr-xr-x
2016-03-04 07:59
defmt-sh
5.99
KB
-rwxr-xr-x
2016-03-04 07:59
delpart
22.53
KB
-rwxr-xr-x
2018-03-07 18:29
dh_bash-completion
2.49
KB
-rwxr-xr-x
2015-08-18 19:47
dh_installxmlcatalogs
9.22
KB
-rwxr-xr-x
2016-11-07 14:53
dh_perl_dbi
1.04
KB
-rwxr-xr-x
2020-09-21 15:33
dh_pypy
12.56
KB
-rwxr-xr-x
2017-01-25 14:47
dh_python2
1.03
KB
-rwxr-xr-x
2017-01-24 13:00
dh_python3
12.77
KB
-rwxr-xr-x
2017-01-25 14:47
diff
143.38
KB
-rwxr-xr-x
2017-01-09 22:55
diff3
58.95
KB
-rwxr-xr-x
2017-01-09 22:55
dircolors
42.77
KB
-rwxr-xr-x
2017-02-22 12:23
dirname
30.73
KB
-rwxr-xr-x
2017-02-22 12:23
discover-config
2.86
KB
-rwxr-xr-x
2018-02-26 19:38
dotlockfile
18.56
KB
-rwxr-sr-x
2017-01-17 13:05
dpkg
286.5
KB
-rwxr-xr-x
2018-06-26 10:28
dpkg-deb
146.34
KB
-rwxr-xr-x
2018-06-26 10:28
dpkg-divert
138.41
KB
-rwxr-xr-x
2018-06-26 10:28
dpkg-maintscript-helper
18.58
KB
-rwxr-xr-x
2018-06-26 10:28
dpkg-query
146.4
KB
-rwxr-xr-x
2018-06-26 10:28
dpkg-split
114.34
KB
-rwxr-xr-x
2018-06-26 10:28
dpkg-statoverride
70.25
KB
-rwxr-xr-x
2018-06-26 10:28
dpkg-trigger
66.26
KB
-rwxr-xr-x
2018-06-26 10:28
du
103.16
KB
-rwxr-xr-x
2017-02-22 12:23
dumpkeys
162.98
KB
-rwxr-xr-x
2016-01-05 16:55
dvipdf
1023
B
-rwxr-xr-x
2020-08-20 14:04
easy_install3
404
B
-rwxr-xr-x
2017-01-19 17:02
edit
17.74
KB
-rwxr-xr-x
2016-05-01 11:20
editor
220.04
KB
-rwxr-xr-x
2017-01-11 02:10
enc2xs
40.21
KB
-rwxr-xr-x
2020-06-20 17:33
encguess
2.99
KB
-rwxr-xr-x
2020-06-20 17:33
env
30.76
KB
-rwxr-xr-x
2017-02-22 12:23
envsubst
34.7
KB
-rwxr-xr-x
2019-08-30 23:30
eps2eps
639
B
-rwxr-xr-x
2020-08-20 14:04
eqn
185.19
KB
-rwxr-xr-x
2016-12-13 13:06
ex
2.3
MB
-rwxr-xr-x
2019-06-21 04:10
expand
34.79
KB
-rwxr-xr-x
2017-02-22 12:23
expiry
22.27
KB
-rwxr-sr-x
2017-05-17 11:59
expr
42.82
KB
-rwxr-xr-x
2017-02-22 12:23
factor
74.88
KB
-rwxr-xr-x
2017-02-22 12:23
faillog
18.29
KB
-rwxr-xr-x
2017-05-17 11:59
fallocate
26.64
KB
-rwxr-xr-x
2018-03-07 18:29
fcgistarter
9.99
KB
-rwxr-xr-x
2019-10-13 15:43
filan
83.85
KB
-rwxr-xr-x
2017-07-14 13:52
file
22.26
KB
-rwxr-xr-x
2019-10-22 20:20
file-rename
3.1
KB
-rwxr-xr-x
2015-06-04 22:55
find
216.57
KB
-rwxr-xr-x
2017-02-18 15:37
findaffix
11.74
KB
-rwxr-xr-x
2016-03-04 07:59
flock
26.79
KB
-rwxr-xr-x
2018-03-07 18:29
fmt
38.79
KB
-rwxr-xr-x
2017-02-22 12:23
fold
34.79
KB
-rwxr-xr-x
2017-02-22 12:23
free
18.08
KB
-rwxr-xr-x
2018-05-17 10:56
from
10.3
KB
-rwxr-xr-x
2017-04-12 11:22
futurize
384
B
-rwxr-xr-x
2016-09-23 17:38
galera_new_cluster
888
B
-rwxr-xr-x
2021-01-31 16:38
galera_recovery
3.28
KB
-rwxr-xr-x
2021-01-31 16:38
gawk
646.72
KB
-rwxr-xr-x
2017-01-25 16:06
geqn
185.19
KB
-rwxr-xr-x
2016-12-13 13:06
getconf
22.37
KB
-rwxr-xr-x
2019-02-06 21:17
getent
23.31
KB
-rwxr-xr-x
2019-02-06 21:17
getkeycodes
10.37
KB
-rwxr-xr-x
2016-01-05 16:55
getopt
14.49
KB
-rwxr-xr-x
2018-03-07 18:29
gettext
34.68
KB
-rwxr-xr-x
2019-08-30 23:30
gettext.sh
4.52
KB
-rwxr-xr-x
2019-08-30 23:30
ghostscript
10.24
KB
-rwxr-xr-x
2020-08-20 14:04
gpasswd
74.02
KB
-rwsr-xr-x
2017-05-17 11:59
gpg
977.35
KB
-rwxr-xr-x
2019-02-07 20:57
gpg-agent
376.63
KB
-rwxr-xr-x
2019-02-07 20:57
gpg-connect-agent
150.73
KB
-rwxr-xr-x
2019-02-07 20:57
gpg-zip
3.36
KB
-rwxr-xr-x
2019-02-07 20:57
gpgconf
157.41
KB
-rwxr-xr-x
2019-02-07 20:57
gpgparsemail
26.07
KB
-rwxr-xr-x
2019-02-07 20:57
gpgsplit
74.33
KB
-rwxr-xr-x
2019-02-07 20:57
gpgv
410.64
KB
-rwxr-xr-x
2019-02-07 20:57
gpic
196.03
KB
-rwxr-xr-x
2016-12-13 13:06
groff
101.31
KB
-rwxr-xr-x
2016-12-13 13:06
grog
2.71
KB
-rwxr-xr-x
2016-12-13 13:06
grops
161.72
KB
-rwxr-xr-x
2016-12-13 13:06
grotty
117.34
KB
-rwxr-xr-x
2016-12-13 13:06
groups
34.79
KB
-rwxr-xr-x
2017-02-22 12:23
grub-editenv
236.97
KB
-rwxr-xr-x
2019-06-12 11:20
grub-file
660.64
KB
-rwxr-xr-x
2019-06-12 11:20
grub-fstest
786.75
KB
-rwxr-xr-x
2019-06-12 11:20
grub-glue-efi
232.81
KB
-rwxr-xr-x
2019-06-12 11:20
grub-kbdcomp
1.64
KB
-rwxr-xr-x
2019-06-12 11:20
grub-menulst2cfg
216.83
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mkfont
261.47
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mkimage
325.88
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mklayout
241.09
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mknetdir
366.55
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mkpasswd-pbkdf2
241.16
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mkrelpath
232.5
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mkrescue
819.39
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mkstandalone
442.88
KB
-rwxr-xr-x
2019-06-12 11:20
grub-mount
605.28
KB
-rwxr-xr-x
2019-06-12 11:20
grub-ntldr-img
34.45
KB
-rwxr-xr-x
2019-06-12 11:20
grub-render-label
673.23
KB
-rwxr-xr-x
2019-06-12 11:20
grub-script-check
260.63
KB
-rwxr-xr-x
2019-06-12 11:20
grub-syslinux2cfg
621.75
KB
-rwxr-xr-x
2019-06-12 11:20
gs
10.24
KB
-rwxr-xr-x
2020-08-20 14:04
gsbj
350
B
-rwxr-xr-x
2020-08-20 14:04
gsdj
352
B
-rwxr-xr-x
2020-08-20 14:04
gsdj500
352
B
-rwxr-xr-x
2020-08-20 14:04
gslj
353
B
-rwxr-xr-x
2020-08-20 14:04
gslp
350
B
-rwxr-xr-x
2020-08-20 14:04
gsnd
277
B
-rwxr-xr-x
2020-08-20 14:04
gtbl
118.2
KB
-rwxr-xr-x
2016-12-13 13:06
h2ph
28.52
KB
-rwxr-xr-x
2020-06-20 17:33
h2xs
59.39
KB
-rwxr-xr-x
2020-06-20 17:33
hd
26.61
KB
-rwxr-xr-x
2017-04-12 11:22
head
42.82
KB
-rwxr-xr-x
2017-02-22 12:23
helpztags
2.46
KB
-rwxr-xr-x
2019-06-21 04:10
hexdump
26.61
KB
-rwxr-xr-x
2017-04-12 11:22
host
114.45
KB
-rwxr-xr-x
2020-08-26 18:03
hostid
30.73
KB
-rwxr-xr-x
2017-02-22 12:23
hostnamectl
18.34
KB
-rwxr-xr-x
2019-07-21 18:43
htcacheclean
30
KB
-rwxr-xr-x
2019-10-13 15:43
htdbm
17.99
KB
-rwxr-xr-x
2019-10-13 15:43
htdigest
9.99
KB
-rwxr-xr-x
2019-10-13 15:43
htpasswd
17.99
KB
-rwxr-xr-x
2019-10-13 15:43
i386
18.73
KB
-rwxr-xr-x
2018-03-07 18:29
icombine
34.38
KB
-rwxr-xr-x
2016-03-04 07:59
iconv
55.01
KB
-rwxr-xr-x
2019-02-06 21:17
id
42.91
KB
-rwxr-xr-x
2017-02-22 12:23
igawk
3.11
KB
-rwxr-xr-x
2017-01-25 16:06
ijoin
14.1
KB
-rwxr-xr-x
2016-03-04 07:59
infocmp
58.07
KB
-rwxr-xr-x
2017-12-28 09:47
infotocap
78.11
KB
-rwxr-xr-x
2017-12-28 09:47
innochecksum
3.42
MB
-rwxr-xr-x
2021-01-31 16:38
innotop
445.81
KB
-rwxr-xr-x
2020-10-12 17:40
install
135.61
KB
-rwxr-xr-x
2017-02-22 12:23
instmodsh
4.27
KB
-rwxr-xr-x
2020-06-20 17:33
ionice
26.66
KB
-rwxr-xr-x
2018-03-07 18:29
iostat
42.13
KB
-rwxr-xr-x
2017-05-25 20:26
ipcmk
26.77
KB
-rwxr-xr-x
2018-03-07 18:29
ipcrm
26.63
KB
-rwxr-xr-x
2018-03-07 18:29
ipcs
50.79
KB
-rwxr-xr-x
2018-03-07 18:29
iptables-xml
92.74
KB
-rwxr-xr-x
2017-04-12 09:41
ischroot
10.3
KB
-rwxr-xr-x
2017-04-02 17:10
ispell
94.46
KB
-rwxr-xr-x
2016-03-04 07:59
ispell-wrapper
7.05
KB
-rwxr-xr-x
2016-10-10 09:58
join
46.85
KB
-rwxr-xr-x
2017-02-22 12:23
json_pp
3.86
KB
-rwxr-xr-x
2020-06-20 17:33
kbdinfo
10.38
KB
-rwxr-xr-x
2016-01-05 16:55
kbxutil
154.63
KB
-rwxr-xr-x
2019-02-07 20:57
kernel-install
3.91
KB
-rwxr-xr-x
2019-07-21 18:43
killall
23.68
KB
-rwxr-xr-x
2015-08-17 13:18
last
42.85
KB
-rwxr-xr-x
2018-03-07 18:29
lastb
42.85
KB
-rwxr-xr-x
2018-03-07 18:29
lastlog
18.07
KB
-rwxr-xr-x
2017-05-17 11:59
lcf
7.6
KB
-rwxr-xr-x
2016-03-16 20:58
ldd
5.27
KB
-rwxr-xr-x
2019-02-06 21:17
less
161.82
KB
-rwxr-xr-x
2016-02-28 11:28
lessecho
10.02
KB
-rwxr-xr-x
2016-02-28 11:28
lessfile
7.58
KB
-rwxr-xr-x
2016-02-28 11:28
lesskey
19.36
KB
-rwxr-xr-x
2016-02-28 11:28
lesspipe
7.58
KB
-rwxr-xr-x
2016-02-28 11:28
letsencrypt
385
B
-rwxr-xr-x
2020-09-26 18:25
lexgrog
90.57
KB
-rwxr-xr-x
2016-12-13 13:10
lft
2.43
KB
-rwxr-xr-x
2016-08-29 15:45
lft.db
2.43
KB
-rwxr-xr-x
2016-08-29 15:45
libnetcfg
15.39
KB
-rwxr-xr-x
2020-06-20 17:33
line
10.4
KB
-rwxr-xr-x
2018-03-07 18:29
link
30.73
KB
-rwxr-xr-x
2017-02-22 12:23
linux-boot-prober
1.54
KB
-rwxr-xr-x
2017-01-20 15:28
linux-check-removal
3.99
KB
-rwxr-xr-x
2016-06-21 02:48
linux-update-symlinks
6.17
KB
-rwxr-xr-x
2016-06-05 01:13
linux-version
2.63
KB
-rwxr-xr-x
2015-08-11 15:45
linux32
18.73
KB
-rwxr-xr-x
2018-03-07 18:29
linux64
18.73
KB
-rwxr-xr-x
2018-03-07 18:29
lnstat
18.8
KB
-rwxr-xr-x
2017-11-24 09:22
loadkeys
199.46
KB
-rwxr-xr-x
2016-01-05 16:55
loadunimap
26.68
KB
-rwxr-xr-x
2016-01-05 16:55
locale
37.91
KB
-rwxr-xr-x
2019-02-06 21:17
localectl
26.41
KB
-rwxr-xr-x
2019-07-21 18:43
localedef
295.69
KB
-rwxr-xr-x
2019-02-06 21:17
logger
43.43
KB
-rwxr-xr-x
2018-03-07 18:29
logname
30.73
KB
-rwxr-xr-x
2017-02-22 12:23
logresolve
10
KB
-rwxr-xr-x
2019-10-13 15:43
look
10.33
KB
-rwxr-xr-x
2017-04-12 11:22
lorder
2.78
KB
-rwxr-xr-x
2017-04-12 11:22
lsattr
10
KB
-rwxr-xr-x
2020-07-25 09:03
lsb_release
3.55
KB
-rwxr-xr-x
2015-08-26 09:44
lscpu
63.2
KB
-rwxr-xr-x
2018-03-07 18:29
lsinitramfs
625
B
-rwxr-xr-x
2017-03-06 22:42
lsipc
71.12
KB
-rwxr-xr-x
2018-03-07 18:29
lslocks
35.16
KB
-rwxr-xr-x
2018-03-07 18:29
lslogins
59.27
KB
-rwxr-xr-x
2018-03-07 18:29
lsns
38.87
KB
-rwxr-xr-x
2018-03-07 18:29
lsof
159.31
KB
-rwxr-xr-x
2015-09-13 21:46
lspci
80.31
KB
-rwxr-xr-x
2016-11-30 06:53
lspgpot
1.06
KB
-rwxr-xr-x
2014-06-25 16:17
lzcat
75.38
KB
-rwxr-xr-x
2016-10-08 13:11
lzcmp
6.48
KB
-rwxr-xr-x
2016-10-08 13:11
lzdiff
6.48
KB
-rwxr-xr-x
2016-10-08 13:11
lzegrep
5.5
KB
-rwxr-xr-x
2016-10-08 13:11
lzfgrep
5.5
KB
-rwxr-xr-x
2016-10-08 13:11
lzgrep
5.5
KB
-rwxr-xr-x
2016-10-08 13:11
lzless
1.76
KB
-rwxr-xr-x
2016-10-08 13:11
lzma
75.38
KB
-rwxr-xr-x
2016-10-08 13:11
lzmainfo
10.38
KB
-rwxr-xr-x
2016-10-08 13:11
lzmore
2.11
KB
-rwxr-xr-x
2016-10-08 13:11
man
104.5
KB
-rwxr-xr-x
2016-12-13 13:10
mandb
126.72
KB
-rwxr-xr-x
2016-12-13 13:10
manpath
30.47
KB
-rwxr-xr-x
2016-12-13 13:10
mapscrn
18.65
KB
-rwxr-xr-x
2016-01-05 16:55
mariabackup
17.34
MB
-rwxr-xr-x
2021-01-31 16:38
mariadb
4.12
MB
-rwxr-xr-x
2021-01-31 16:38
mariadb-service-convert
2.43
KB
-rwxr-xr-x
2021-01-31 16:38
mariadbcheck
3.91
MB
-rwxr-xr-x
2021-01-31 16:38
mawk
119.12
KB
-rwxr-xr-x
2012-03-23 20:15
mbstream
3.4
MB
-rwxr-xr-x
2021-01-31 16:38
mcookie
30.79
KB
-rwxr-xr-x
2018-03-07 18:29
md5sum
42.85
KB
-rwxr-xr-x
2017-02-22 12:23
md5sum.textutils
42.85
KB
-rwxr-xr-x
2017-02-22 12:23
mesg
10.45
KB
-rwxr-xr-x
2018-03-07 18:29
migrate-pubring-from-classic-gpg
2.14
KB
-rwxr-xr-x
2018-10-03 00:58
mk_modmap
15.78
KB
-rwxr-xr-x
2016-01-05 16:55
mkfifo
63.04
KB
-rwxr-xr-x
2017-02-22 12:23
mkpasswd
18.57
KB
-rwxr-xr-x
2017-07-27 15:45
mpstat
38.15
KB
-rwxr-xr-x
2017-05-25 20:26
msql2mysql
1.41
KB
-rwxr-xr-x
2021-01-31 16:38
mtr
84.72
KB
-rwsr-xr-x
2017-01-02 18:20
munchlist
31.23
KB
-rwxr-xr-x
2016-03-04 07:59
my_print_defaults
3.39
MB
-rwxr-xr-x
2021-01-31 16:38
myisam_ftdump
3.75
MB
-rwxr-xr-x
2021-01-31 16:38
myisamchk
3.87
MB
-rwxr-xr-x
2021-01-31 16:38
myisamlog
3.73
MB
-rwxr-xr-x
2021-01-31 16:38
myisampack
3.77
MB
-rwxr-xr-x
2021-01-31 16:38
mysql
4.12
MB
-rwxr-xr-x
2021-01-31 16:38
mysql_convert_table_format
4.12
KB
-rwxr-xr-x
2021-01-31 16:38
mysql_embedded
16.03
MB
-rwxr-xr-x
2021-01-31 16:38
mysql_find_rows
3.21
KB
-rwxr-xr-x
2021-01-31 16:38
mysql_fix_extensions
1.22
KB
-rwxr-xr-x
2021-01-31 16:38
mysql_install_db
19.15
KB
-rwxr-xr-x
2021-01-31 16:38
mysql_plugin
3.39
MB
-rwxr-xr-x
2021-01-31 16:38
mysql_secure_installation
12.23
KB
-rwxr-xr-x
2021-01-31 16:38
mysql_setpermission
17.07
KB
-rwxr-xr-x
2021-01-31 16:38
mysql_tzinfo_to_sql
3.39
MB
-rwxr-xr-x
2021-01-31 16:38
mysql_upgrade
3.47
MB
-rwxr-xr-x
2021-01-31 16:38
mysql_waitpid
3.38
MB
-rwxr-xr-x
2021-01-31 16:38
mysql_zap
3.77
KB
-rwxr-xr-x
2021-01-31 16:38
mysqlaccess
109.33
KB
-rwxr-xr-x
2021-01-31 16:38
mysqladmin
3.91
MB
-rwxr-xr-x
2021-01-31 16:38
mysqlanalyze
3.91
MB
-rwxr-xr-x
2021-01-31 16:38
mysqlbinlog
4.08
MB
-rwxr-xr-x
2021-01-31 16:38
mysqlcheck
3.91
MB
-rwxr-xr-x
2021-01-31 16:38
mysqld_multi
23.84
KB
-rwxr-xr-x
2021-01-31 16:38
mysqld_safe
30.79
KB
-rwxr-xr-x
2021-01-31 16:38
mysqld_safe_helper
3.35
MB
-rwxr-xr-x
2021-01-31 16:38
mysqldump
3.99
MB
-rwxr-xr-x
2021-01-31 16:38
mysqldumpslow
8.05
KB
-rwxr-xr-x
2021-01-31 16:38
mysqlhotcopy
34.12
KB
-rwxr-xr-x
2021-01-31 16:38
mysqlimport
3.9
MB
-rwxr-xr-x
2021-01-31 16:38
mysqloptimize
3.91
MB
-rwxr-xr-x
2021-01-31 16:38
mysqlrepair
3.91
MB
-rwxr-xr-x
2021-01-31 16:38
mysqlreport
50.03
KB
-rwxr-xr-x
2020-10-12 17:40
mysqlshow
3.9
MB
-rwxr-xr-x
2021-01-31 16:38
mysqlslap
3.92
MB
-rwxr-xr-x
2021-01-31 16:38
mytop
63.3
KB
-rwxr-xr-x
2021-01-31 16:38
namei
26.66
KB
-rwxr-xr-x
2018-03-07 18:29
nawk
646.72
KB
-rwxr-xr-x
2017-01-25 16:06
ncal
29.21
KB
-rwxr-xr-x
2017-04-12 11:22
neqn
908
B
-rwxr-xr-x
2016-12-13 13:06
newgrp
39.37
KB
-rwsr-xr-x
2017-05-17 11:59
ngettext
34.7
KB
-rwxr-xr-x
2019-08-30 23:30
nice
34.76
KB
-rwxr-xr-x
2017-02-22 12:23
nl
38.91
KB
-rwxr-xr-x
2017-02-22 12:23
nohup
34.79
KB
-rwxr-xr-x
2017-02-22 12:23
nproc
34.79
KB
-rwxr-xr-x
2017-02-22 12:23
nroff
3.25
KB
-rwxr-xr-x
2016-12-13 13:06
nsenter
30.95
KB
-rwxr-xr-x
2018-03-07 18:29
nstat
22.67
KB
-rwxr-xr-x
2017-11-24 09:22
numfmt
58.91
KB
-rwxr-xr-x
2017-02-22 12:23
od
66.91
KB
-rwxr-xr-x
2017-02-22 12:23
on_ac_power
2.2
KB
-rwxr-xr-x
2009-12-02 08:57
openssl
639.48
KB
-rwxr-xr-x
2020-12-11 09:22
os-prober
4.44
KB
-rwxr-xr-x
2017-01-31 03:56
pager
161.82
KB
-rwxr-xr-x
2016-02-28 11:28
paperconf
10.34
KB
-rwxr-xr-x
2016-11-11 11:28
partx
83.63
KB
-rwxr-xr-x
2018-03-07 18:29
passwd
58.28
KB
-rwsr-xr-x
2017-05-17 11:59
paste
34.79
KB
-rwxr-xr-x
2017-02-22 12:23
pasteurize
388
B
-rwxr-xr-x
2016-09-23 17:38
pathchk
30.76
KB
-rwxr-xr-x
2017-02-22 12:23
pbr
152
B
-rwxr-xr-x
2016-09-21 14:14
pcimodules
14.59
KB
-rwxr-xr-x
2016-11-30 06:53
pdb
45.02
KB
-rwxr-xr-x
2020-08-22 10:03
pdb2.7
45.02
KB
-rwxr-xr-x
2020-08-22 10:03
pdb3
59.7
KB
-rwxr-xr-x
2020-11-18 21:09
pdb3.5
59.7
KB
-rwxr-xr-x
2020-11-18 21:09
pdf2dsc
698
B
-rwxr-xr-x
2020-08-20 14:04
pdf2ps
909
B
-rwxr-xr-x
2020-08-20 14:04
peekfd
10.52
KB
-rwxr-xr-x
2015-08-17 13:18
perf
528
B
-rwxr-xr-x
2016-09-16 23:34
perl
1.93
MB
-rwxr-xr-x
2020-06-20 17:33
perl5.24-x86_64-linux-gnu
10.24
KB
-rwxr-xr-x
2020-06-20 17:33
perl5.24.1
1.93
MB
-rwxr-xr-x
2020-06-20 17:33
perlbug
44.46
KB
-rwxr-xr-x
2020-06-20 17:33
perldoc
125
B
-rwxr-xr-x
2020-06-20 17:33
perlivp
10.61
KB
-rwxr-xr-x
2020-06-20 17:33
perlthanks
44.46
KB
-rwxr-xr-x
2020-06-20 17:33
perror
3.54
MB
-rwxr-xr-x
2021-01-31 16:38
pf2afm
498
B
-rwxr-xr-x
2020-08-20 14:04
pfbtopfa
516
B
-rwxr-xr-x
2020-08-20 14:04
pg
38.89
KB
-rwxr-xr-x
2018-03-07 18:29
pgrep
26.09
KB
-rwxr-xr-x
2018-05-17 10:56
phar
14.54
KB
-rwxr-xr-x
2021-02-12 14:49
phar.phar
14.54
KB
-rwxr-xr-x
2021-02-12 14:49
phar.phar7.0
14.48
KB
-rwxr-xr-x
2020-10-06 17:08
phar.phar7.4
14.54
KB
-rwxr-xr-x
2021-02-12 14:49
phar7.0
14.48
KB
-rwxr-xr-x
2020-10-06 17:08
phar7.4
14.54
KB
-rwxr-xr-x
2021-02-12 14:49
phar7.4.phar
14.54
KB
-rwxr-xr-x
2021-02-12 14:49
php
4.46
MB
-rwxr-xr-x
2021-02-12 14:49
php7.0
4.19
MB
-rwxr-xr-x
2020-10-06 17:08
php7.4
4.46
MB
-rwxr-xr-x
2021-02-12 14:49
pic
196.03
KB
-rwxr-xr-x
2016-12-13 13:06
pico
220.04
KB
-rwxr-xr-x
2017-01-11 02:10
piconv
8.16
KB
-rwxr-xr-x
2020-06-20 17:33
pidstat
54.15
KB
-rwxr-xr-x
2017-05-25 20:26
pinentry
54.46
KB
-rwxr-xr-x
2017-02-06 08:56
pinentry-curses
54.46
KB
-rwxr-xr-x
2017-02-06 08:56
pinky
38.95
KB
-rwxr-xr-x
2017-02-22 12:23
pkill
26.09
KB
-rwxr-xr-x
2018-05-17 10:56
pl2pm
4.42
KB
-rwxr-xr-x
2020-06-20 17:33
pldd
14.57
KB
-rwxr-xr-x
2019-02-06 21:17
pmap
30.09
KB
-rwxr-xr-x
2018-05-17 10:56
pod2html
4.04
KB
-rwxr-xr-x
2020-06-20 17:33
pod2man
13.84
KB
-rwxr-xr-x
2020-06-20 17:33
pod2text
10.72
KB
-rwxr-xr-x
2020-06-20 17:33
pod2usage
3.86
KB
-rwxr-xr-x
2020-06-20 17:33
podchecker
3.61
KB
-rwxr-xr-x
2020-06-20 17:33
podselect
2.47
KB
-rwxr-xr-x
2020-06-20 17:33
pphs
404
B
-rwxr-xr-x
2020-08-20 14:04
pr
75.01
KB
-rwxr-xr-x
2017-02-22 12:23
preconv
42.2
KB
-rwxr-xr-x
2016-12-13 13:06
prename
3.13
KB
-rwxr-xr-x
2020-06-20 17:33
print
17.74
KB
-rwxr-xr-x
2016-05-01 11:20
printafm
395
B
-rwxr-xr-x
2020-08-20 14:04
printenv
30.73
KB
-rwxr-xr-x
2017-02-22 12:23
printerbanner
18.28
KB
-rwxr-xr-x
2017-04-12 11:22
printf
50.79
KB
-rwxr-xr-x
2017-02-22 12:23
prlimit
31.38
KB
-rwxr-xr-x
2018-03-07 18:29
procan
71.74
KB
-rwxr-xr-x
2017-07-14 13:52
prove
13.27
KB
-rwxr-xr-x
2020-06-20 17:33
prtstat
14.42
KB
-rwxr-xr-x
2015-08-17 13:18
ps2ascii
631
B
-rwxr-xr-x
2020-08-20 14:04
ps2epsi
2.69
KB
-rwxr-xr-x
2020-08-20 14:04
ps2pdf
272
B
-rwxr-xr-x
2020-08-20 14:04
ps2pdf12
215
B
-rwxr-xr-x
2020-08-20 14:04
ps2pdf13
215
B
-rwxr-xr-x
2020-08-20 14:04
ps2pdf14
215
B
-rwxr-xr-x
2020-08-20 14:04
ps2pdfwr
1.07
KB
-rwxr-xr-x
2020-08-20 14:04
ps2ps
647
B
-rwxr-xr-x
2020-08-20 14:04
ps2ps2
669
B
-rwxr-xr-x
2020-08-20 14:04
ps2txt
631
B
-rwxr-xr-x
2020-08-20 14:04
psfaddtable
18.38
KB
-rwxr-xr-x
2016-01-05 16:55
psfgettable
18.38
KB
-rwxr-xr-x
2016-01-05 16:55
psfstriptable
18.38
KB
-rwxr-xr-x
2016-01-05 16:55
psfxtable
18.38
KB
-rwxr-xr-x
2016-01-05 16:55
pstree
27.49
KB
-rwxr-xr-x
2015-08-17 13:18
pstree.x11
27.49
KB
-rwxr-xr-x
2015-08-17 13:18
pstruct
35.89
KB
-rwxr-xr-x
2020-06-20 17:33
ptar
3.48
KB
-rwxr-xr-x
2020-06-20 17:33
ptardiff
2.57
KB
-rwxr-xr-x
2020-06-20 17:33
ptargrep
4.29
KB
-rwxr-xr-x
2020-06-20 17:33
ptx
71.01
KB
-rwxr-xr-x
2017-02-22 12:23
pwdx
10.07
KB
-rwxr-xr-x
2018-05-17 10:56
py3clean
7.62
KB
-rwxr-xr-x
2017-01-20 10:03
py3compile
11.83
KB
-rwxr-xr-x
2017-01-20 10:03
py3versions
11.44
KB
-rwxr-xr-x
2017-01-20 10:03
pybuild
21.75
KB
-rwxr-xr-x
2017-01-25 14:47
pyclean
4.03
KB
-rwxr-xr-x
2017-01-24 13:00
pycompile
11.62
KB
-rwxr-xr-x
2017-01-24 13:00
pydoc
79
B
-rwxr-xr-x
2020-08-22 10:03
pydoc2.7
79
B
-rwxr-xr-x
2020-08-22 10:03
pydoc3
79
B
-rwxr-xr-x
2020-11-18 21:09
pydoc3.5
79
B
-rwxr-xr-x
2020-11-18 21:09
pygettext
21.58
KB
-rwxr-xr-x
2020-08-22 10:03
pygettext2.7
21.58
KB
-rwxr-xr-x
2020-08-22 10:03
pygettext3
21.73
KB
-rwxr-xr-x
2020-11-18 21:09
pygettext3.5
21.73
KB
-rwxr-xr-x
2020-11-18 21:09
python
3.62
MB
-rwxr-xr-x
2020-08-22 10:03
python2
3.62
MB
-rwxr-xr-x
2020-08-22 10:03
python2.7
3.62
MB
-rwxr-xr-x
2020-08-22 10:03
python3
4.54
MB
-rwxr-xr-x
2020-11-18 21:09
python3-futurize
384
B
-rwxr-xr-x
2016-09-23 17:38
python3-pasteurize
388
B
-rwxr-xr-x
2016-09-23 17:38
python3-pbr
152
B
-rwxr-xr-x
2016-09-21 14:14
python3.5
4.54
MB
-rwxr-xr-x
2020-11-18 21:09
python3.5m
4.54
MB
-rwxr-xr-x
2020-11-18 21:09
python3m
4.54
MB
-rwxr-xr-x
2020-11-18 21:09
pyversions
14.75
KB
-rwxr-xr-x
2017-01-24 13:00
querybts
10.59
KB
-rwxr-xr-x
2019-08-29 14:19
rcp
86.14
KB
-rwxr-xr-x
2019-07-15 13:32
realpath
46.82
KB
-rwxr-xr-x
2017-02-22 12:23
rename
3.1
KB
-rwxr-xr-x
2015-06-04 22:55
rename.ul
14.48
KB
-rwxr-xr-x
2018-03-07 18:29
renice
10.36
KB
-rwxr-xr-x
2018-03-07 18:29
replace
3.36
MB
-rwxr-xr-x
2021-01-31 16:38
report-hw
2.05
KB
-rwxr-xr-x
2015-12-30 04:01
reportbug
103.63
KB
-rwxr-xr-x
2019-08-29 14:19
reset
22
KB
-rwxr-xr-x
2017-12-28 09:47
resizecons
18.65
KB
-rwxr-xr-x
2016-01-05 16:55
resizepart
38.86
KB
-rwxr-xr-x
2018-03-07 18:29
resolve_stack_dump
3.38
MB
-rwxr-xr-x
2021-01-31 16:38
resolveip
3.38
MB
-rwxr-xr-x
2021-01-31 16:38
rev
10.45
KB
-rwxr-xr-x
2018-03-07 18:29
rgrep
30
B
-rwxr-xr-x
2016-11-28 21:59
rlogin
714.86
KB
-rwxr-xr-x
2019-07-15 13:32
rotatelogs
18.07
KB
-rwxr-xr-x
2019-10-13 15:43
routef
173
B
-rwxr-xr-x
2017-11-24 09:22
routel
1.23
KB
-rwxr-xr-x
2017-11-24 09:22
rsh
714.86
KB
-rwxr-xr-x
2019-07-15 13:32
rsync
472.3
KB
-rwxr-xr-x
2019-03-15 10:39
rtstat
18.8
KB
-rwxr-xr-x
2017-11-24 09:22
run-mailcap
17.74
KB
-rwxr-xr-x
2016-05-01 11:20
runcon
34.85
KB
-rwxr-xr-x
2017-02-22 12:23
rview
2.3
MB
-rwxr-xr-x
2019-06-21 04:10
rvim
2.3
MB
-rwxr-xr-x
2019-06-21 04:10
sadf
282.37
KB
-rwxr-xr-x
2017-05-25 20:26
sar
109.7
KB
-rwxr-xr-x
2017-05-25 20:26
sar.sysstat
109.7
KB
-rwxr-xr-x
2017-05-25 20:26
savelog
10.22
KB
-rwxr-xr-x
2017-04-02 17:10
scp
86.14
KB
-rwxr-xr-x
2019-07-15 13:32
screendump
10.34
KB
-rwxr-xr-x
2016-01-05 16:55
script
22.73
KB
-rwxr-xr-x
2018-03-07 18:29
scriptreplay
22.63
KB
-rwxr-xr-x
2018-03-07 18:29
sdiff
50.85
KB
-rwxr-xr-x
2017-01-09 22:55
see
17.74
KB
-rwxr-xr-x
2016-05-01 11:20
select-default-iwrap
474
B
-rwxr-xr-x
2016-10-10 09:58
select-editor
1.19
KB
-rwxr-xr-x
2017-12-20 13:39
sensible-browser
1.11
KB
-rwxr-xr-x
2017-12-20 13:39
sensible-editor
1.08
KB
-rwxr-xr-x
2017-12-20 13:39
sensible-pager
288
B
-rwxr-xr-x
2017-12-20 13:39
seq
46.82
KB
-rwxr-xr-x
2017-02-22 12:23
setarch
18.73
KB
-rwxr-xr-x
2018-03-07 18:29
setkeycodes
10.37
KB
-rwxr-xr-x
2016-01-05 16:55
setleds
14.35
KB
-rwxr-xr-x
2016-01-05 16:55
setlogcons
10.37
KB
-rwxr-xr-x
2016-01-05 16:55
setmetamode
10.4
KB
-rwxr-xr-x
2016-01-05 16:55
setpci
22.54
KB
-rwxr-xr-x
2016-11-30 06:53
setsid
10.45
KB
-rwxr-xr-x
2018-03-07 18:29
setterm
38.68
KB
-rwxr-xr-x
2018-03-07 18:29
setvtrgb
10.46
KB
-rwxr-xr-x
2016-01-05 16:55
sftp
134.36
KB
-rwxr-xr-x
2019-07-15 13:32
sg
39.37
KB
-rwsr-xr-x
2017-05-17 11:59
sha1sum
46.85
KB
-rwxr-xr-x
2017-02-22 12:23
sha224sum
54.85
KB
-rwxr-xr-x
2017-02-22 12:23
sha256sum
54.85
KB
-rwxr-xr-x
2017-02-22 12:23
sha384sum
58.85
KB
-rwxr-xr-x
2017-02-22 12:23
sha512sum
58.85
KB
-rwxr-xr-x
2017-02-22 12:23
shasum
9.15
KB
-rwxr-xr-x
2020-06-20 17:33
showconsolefont
18.45
KB
-rwxr-xr-x
2016-01-05 16:55
showkey
14.63
KB
-rwxr-xr-x
2016-01-05 16:55
shred
59.01
KB
-rwxr-xr-x
2017-02-22 12:23
shuf
54.91
KB
-rwxr-xr-x
2017-02-22 12:23
skill
26.08
KB
-rwxr-xr-x
2018-05-17 10:56
slabtop
18.08
KB
-rwxr-xr-x
2018-05-17 10:56
slogin
714.86
KB
-rwxr-xr-x
2019-07-15 13:32
snice
26.08
KB
-rwxr-xr-x
2018-05-17 10:56
socat
369.47
KB
-rwxr-xr-x
2017-07-14 13:52
soelim
30.2
KB
-rwxr-xr-x
2016-12-13 13:06
sort
107.52
KB
-rwxr-xr-x
2017-02-22 12:23
splain
18.37
KB
-rwxr-xr-x
2020-06-20 17:33
split
55.38
KB
-rwxr-xr-x
2017-02-22 12:23
splitfont
10.25
KB
-rwxr-xr-x
2016-01-05 16:55
sq
5.99
KB
-rwxr-xr-x
2016-03-04 07:59
ssh
714.86
KB
-rwxr-xr-x
2019-07-15 13:32
ssh-add
330.21
KB
-rwxr-xr-x
2019-07-15 13:32
ssh-agent
350.22
KB
-rwxr-sr-x
2019-07-15 13:32
ssh-argv0
1.42
KB
-rwxr-xr-x
2019-03-01 16:19
ssh-copy-id
10.13
KB
-rwxr-xr-x
2016-12-19 04:59
ssh-keygen
390.23
KB
-rwxr-xr-x
2019-07-15 13:32
ssh-keyscan
406.23
KB
-rwxr-xr-x
2019-07-15 13:32
stat
83.1
KB
-rwxr-xr-x
2017-02-22 12:23
stdbuf
46.82
KB
-rwxr-xr-x
2017-02-22 12:23
sudo
137.64
KB
-rwsr-xr-x
2021-01-23 09:10
sudoedit
137.64
KB
-rwsr-xr-x
2021-01-23 09:10
sudoreplay
46.59
KB
-rwxr-xr-x
2021-01-23 09:10
sum
38.83
KB
-rwxr-xr-x
2017-02-22 12:23
symcryptrun
110.6
KB
-rwxr-xr-x
2019-02-07 20:57
systemd-analyze
1010.6
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-cat
10.34
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-cgls
14.34
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-cgtop
30.44
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-delta
22.41
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-detect-virt
10.33
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-mount
30.35
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-path
10.33
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-resolve
78.34
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-run
38.34
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-socket-activate
22.34
KB
-rwxr-xr-x
2019-07-21 18:43
systemd-stdio-bridge
14.34
KB
-rwxr-xr-x
2019-07-21 18:43
tabs
13.99
KB
-rwxr-xr-x
2017-12-28 09:47
tac
38.82
KB
-rwxr-xr-x
2017-02-22 12:23
tail
66.98
KB
-rwxr-xr-x
2017-02-22 12:23
tapestat
34.13
KB
-rwxr-xr-x
2017-05-25 20:26
tasksel
16.1
KB
-rwxr-xr-x
2016-12-24 12:46
taskset
30.75
KB
-rwxr-xr-x
2018-03-07 18:29
tbl
118.2
KB
-rwxr-xr-x
2016-12-13 13:06
tee
34.82
KB
-rwxr-xr-x
2017-02-22 12:23
telnet
104.42
KB
-rwxr-xr-x
2016-11-07 18:06
telnet.netkit
104.42
KB
-rwxr-xr-x
2016-11-07 18:06
test
46.79
KB
-rwxr-xr-x
2017-02-22 12:23
tic
78.11
KB
-rwxr-xr-x
2017-12-28 09:47
timedatectl
22.34
KB
-rwxr-xr-x
2019-07-21 18:43
timeout
39.35
KB
-rwxr-xr-x
2017-02-22 12:23
tload
14.09
KB
-rwxr-xr-x
2018-05-17 10:56
toe
13.99
KB
-rwxr-xr-x
2017-12-28 09:47
top
105.77
KB
-rwxr-xr-x
2018-05-17 10:56
touch
90.98
KB
-rwxr-xr-x
2017-02-22 12:23
tput
18.02
KB
-rwxr-xr-x
2017-12-28 09:47
tr
46.79
KB
-rwxr-xr-x
2017-02-22 12:23
traceproto
2.82
KB
-rwxr-xr-x
2016-08-29 15:45
traceproto.db
2.82
KB
-rwxr-xr-x
2016-08-29 15:45
traceroute
67.16
KB
-rwxr-xr-x
2016-08-29 15:45
traceroute-nanog
1.58
KB
-rwxr-xr-x
2016-08-29 15:45
traceroute.db
67.16
KB
-rwxr-xr-x
2016-08-29 15:45
traceroute6
67.16
KB
-rwxr-xr-x
2016-08-29 15:45
traceroute6.db
67.16
KB
-rwxr-xr-x
2016-08-29 15:45
troff
695.34
KB
-rwxr-xr-x
2016-12-13 13:06
truncate
38.76
KB
-rwxr-xr-x
2017-02-22 12:23
tryaffix
4.8
KB
-rwxr-xr-x
2016-03-04 07:59
tset
22
KB
-rwxr-xr-x
2017-12-28 09:47
tsort
34.76
KB
-rwxr-xr-x
2017-02-22 12:23
tty
30.76
KB
-rwxr-xr-x
2017-02-22 12:23
tzselect
14.83
KB
-rwxr-xr-x
2019-02-06 21:17
ucf
39.68
KB
-rwxr-xr-x
2016-03-16 20:58
ucfq
18.91
KB
-rwxr-xr-x
2016-03-16 20:58
ucfr
10.47
KB
-rwxr-xr-x
2016-03-16 20:58
ul
14.34
KB
-rwxr-xr-x
2017-04-12 11:22
unexpand
34.82
KB
-rwxr-xr-x
2017-02-22 12:23
unicode_stop
530
B
-rwxr-xr-x
2016-01-05 16:55
uniq
42.85
KB
-rwxr-xr-x
2017-02-22 12:23
unlink
30.73
KB
-rwxr-xr-x
2017-02-22 12:23
unlzma
75.38
KB
-rwxr-xr-x
2016-10-08 13:11
unmkinitramfs
2.79
KB
-rwxr-xr-x
2017-03-06 22:42
unshare
18.82
KB
-rwxr-xr-x
2018-03-07 18:29
unsq
9.99
KB
-rwxr-xr-x
2016-03-04 07:59
unxz
75.38
KB
-rwxr-xr-x
2016-10-08 13:11
update-alternatives
46.01
KB
-rwxr-xr-x
2018-06-26 10:28
update-mime-database
672
B
-rwxr-xr-x
2018-03-14 18:01
update-mime-database.real
51.23
KB
-rwxr-xr-x
2018-03-14 18:01
uptime
10.07
KB
-rwxr-xr-x
2018-05-17 10:56
users
30.79
KB
-rwxr-xr-x
2017-02-22 12:23
utmpdump
22.71
KB
-rwxr-xr-x
2018-03-07 18:29
vi
2.3
MB
-rwxr-xr-x
2019-06-21 04:10
view
2.3
MB
-rwxr-xr-x
2019-06-21 04:10
vim
2.3
MB
-rwxr-xr-x
2019-06-21 04:10
vim.basic
2.3
MB
-rwxr-xr-x
2019-06-21 04:10
vim.tiny
1.01
MB
-rwxr-xr-x
2019-06-21 04:10
vimdiff
2.3
MB
-rwxr-xr-x
2019-06-21 04:10
vimtutor
2.05
KB
-rwxr-xr-x
2019-06-21 04:10
vmstat
30.09
KB
-rwxr-xr-x
2018-05-17 10:56
w
18.07
KB
-rwxr-xr-x
2018-05-17 10:56
w.procps
18.07
KB
-rwxr-xr-x
2018-05-17 10:56
wall
26.8
KB
-rwxr-sr-x
2018-03-07 18:29
watch
22.41
KB
-rwxr-xr-x
2018-05-17 10:56
watchgnupg
13.99
KB
-rwxr-xr-x
2019-02-07 20:57
wc
42.86
KB
-rwxr-xr-x
2017-02-22 12:23
wget
479.56
KB
-rwxr-xr-x
2019-04-05 13:05
whatis
46.98
KB
-rwxr-xr-x
2016-12-13 13:10
whereis
27.09
KB
-rwxr-xr-x
2018-03-07 18:29
which
946
B
-rwxr-xr-x
2017-04-02 17:10
whiptail
26.77
KB
-rwxr-xr-x
2016-10-15 08:00
who
50.95
KB
-rwxr-xr-x
2017-02-22 12:23
whoami
30.76
KB
-rwxr-xr-x
2017-02-22 12:23
whois
149.18
KB
-rwxr-xr-x
2017-07-27 15:45
write
14.42
KB
-rwxr-sr-x
2017-04-12 11:22
wsrep_sst_common
10.51
KB
-rwxr-xr-x
2021-01-31 16:38
wsrep_sst_mariabackup
36.97
KB
-rwxr-xr-x
2021-01-31 16:38
wsrep_sst_mysqldump
7.69
KB
-rwxr-xr-x
2021-01-31 16:38
wsrep_sst_rsync
14.96
KB
-rwxr-xr-x
2021-01-31 16:38
wsrep_sst_rsync_wan
14.96
KB
-rwxr-xr-x
2021-01-31 16:38
wsrep_sst_xtrabackup
20.77
KB
-rwxr-xr-x
2021-01-31 16:38
wsrep_sst_xtrabackup-v2
40.73
KB
-rwxr-xr-x
2021-01-31 16:38
x86_64
18.73
KB
-rwxr-xr-x
2018-03-07 18:29
xargs
66.21
KB
-rwxr-xr-x
2017-02-18 15:37
xauth
47.47
KB
-rwxr-xr-x
2014-07-13 08:34
xdg-user-dir
234
B
-rwxr-xr-x
2014-09-19 09:17
xdg-user-dirs-update
18.59
KB
-rwxr-xr-x
2014-09-19 09:17
xsubpp
5.04
KB
-rwxr-xr-x
2020-06-20 17:33
xxd
18.12
KB
-rwxr-xr-x
2019-06-21 04:10
xz
75.38
KB
-rwxr-xr-x
2016-10-08 13:11
xzcat
75.38
KB
-rwxr-xr-x
2016-10-08 13:11
xzcmp
6.48
KB
-rwxr-xr-x
2016-10-08 13:11
xzdiff
6.48
KB
-rwxr-xr-x
2016-10-08 13:11
xzegrep
5.5
KB
-rwxr-xr-x
2016-10-08 13:11
xzfgrep
5.5
KB
-rwxr-xr-x
2016-10-08 13:11
xzgrep
5.5
KB
-rwxr-xr-x
2016-10-08 13:11
xzless
1.76
KB
-rwxr-xr-x
2016-10-08 13:11
xzmore
2.11
KB
-rwxr-xr-x
2016-10-08 13:11
yes
30.73
KB
-rwxr-xr-x
2017-02-22 12:23
zdump
14.42
KB
-rwxr-xr-x
2019-02-06 21:17
zipdetails
47.36
KB
-rwxr-xr-x
2020-06-20 17:33
Save
Rename
#!/usr/bin/python3 # -*- python -*- # reportbug - Report a bug in the Debian distribution. # Written by Chris Lawrence <lawrencc@debian.org> # Copyright (C) 1999-2008 Chris Lawrence # Copyright (C) 2008-2017 Sandro Tosi <morph@debian.org> # # This program is freely distributable per the following license: # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appears in all copies and that # both that copyright notice and this permission notice appear in # supporting documentation. # # I DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL I # BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY # DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS # SOFTWARE. DEFAULT_BTS = 'debian' import sys #reload(sys) #sys.setdefaultencoding("utf-8") import os import optparse import re import locale import requests import subprocess import shlex import email import gettext import textwrap # for blogging of attachments file from glob import glob from reportbug import utils from reportbug import ( VERSION, VERSION_NUMBER, COPYRIGHT, LICENSE ) from reportbug.utils import ( MODE_EXPERT, MODE_ADVANCED, MODE_NOVICE, MODE_STANDARD, ) from reportbug.tempfiles import ( TempFile, tempfile_prefix, cleanup_temp_file, ) from reportbug.exceptions import ( UINotImportable, UINotImplemented, NoNetwork, NoPackage, NoBugs, NoReport, QuertBTSError, ) from reportbug import submit from reportbug import checkversions from reportbug import debbugs from reportbug import checkbuildd import reportbug.ui.text_ui as ui from reportbug.ui import ( UIS, AVAILABLE_UIS, getUI ) # ui = getUI('text') try: gettext.install('reportbug') except IOError: pass # Magic constant time MIN_USER_ID = 250 quietly = False # Cheat for now. # ewrite() may put stuff on the status bar or in message boxes depending on UI def ewrite(*args): return quietly or ui.log_message(*args) def efail(*args): ui.display_failure(*args) sys.exit(1) # Lame message when we store a report as a temp file. def stopmsg(filename): ui.final_message( 'reportbug stopped; your incomplete report is stored as "%s".\n' 'This file may be located in a temporary directory; if so, it might ' 'disappear without any further notice. To recover this file to use ' 'it as bug report body, please take a look at the "-i FILE, ' '--include=FILE" option.\n' 'Alternatively, you can copy the content of the temporary file (both ' 'headers and body) and copy it into your MUA and send the mail to ' 'submit@bugs.debian.org, editing the subject and bug text as needed ' '(but not altering the other information).\n', filename) def check_attachment_size(attachfile, maxsize): """Check if the attachment size is bigger than max allowed""" statinfo = os.stat(attachfile) attachsize = statinfo[6] return attachsize >= maxsize def include_file_in_report(message, message_filename, attachment_filenames, package_name, include_filename, charset, inline=False, draftpath=None): """ Include a file in the report. :parameters: `message` The current text of the message. `message_filename` The current message filename. `attachment_filenames` List of current attachment filenames. `package_name` Name of the package for this report. `include_filename` Full pathname of the file to be included. `inline` If True, include the message inline with the message text. Otherwise, add the file path to the attachments. :return value: Tuple (`message`, `message_filename`, `attachments`) of values as modified during the process of including the new file. """ if inline: try: fp = open(include_filename) message += '\n*** %s\n%s' % ( include_filename, fp.read()) fp.close() fp, temp_filename = TempFile( prefix=tempfile_prefix(package_name), dir=draftpath) fp.write(message) fp.close() os.unlink(message_filename) message_filename = temp_filename except (IOError, OSError) as exc: ui.display_failure('Unable to attach file %s\n%s\n', include_filename, str(exc)) else: attachment_filenames.append(include_filename) return (message, message_filename, attachment_filenames) # Useful to retrieve CCs given in handle_editing CCS = [] def handle_editing(filename, dmessage, options, sendto, attachments, package, severity, mode, editor=None, charset='utf-8', tags=''): if not editor: editor = options.editor editor = utils.which_editor(editor) message = None patch = False skip_editing = False # is this report just to be saved on a file ? justsave = False while True: if not skip_editing: (message, changed) = ui.spawn_editor(message or dmessage, filename, editor, charset) skip_editing = False if not message: x = '' while x != 'y': x = ui.select_options('Done editing', 'Ynq', {'y': 'Continue (editing done).', 'n': "Don't continue yet.", 'q': 'Exit without sending report.'}) if x == 'q': stopmsg(filename) sys.exit(1) message = open(filename).read() changed = True prompt = 'Submit this report on %s (e to edit)' % package if options.kudos: prompt = 'Send this message (e to edit)' ewrite("Message will be sent to %s\n", sendto) elif options.outfile: ewrite("Report will be saved as %s\n", options.outfile) else: ewrite("Report will be sent to %s\n", sendto) if attachments: ewrite('Attachments:\n') for name in attachments: ewrite(' %s\n', name) subject = re.search('^Subject: ', message, re.M | re.I) if not subject: ui.long_message('No subject found in message. Please edit again.\n') menuopts = "Ynaceilmpqdts" if not changed or not subject: menuopts = "ynacEilmpqdts" # cfr Debian BTS #293361 if package == 'wnpp': for itp_line in debbugs.itp_template.rsplit('\n'): # if the line is not empty and it's in the message the user wrote if itp_line in message and itp_line != '': ewrite("Wrong line: %s\n", itp_line) menuopts = "Eq" prompt = 'ERROR: you have composed a WNPP bug report with fields unchanged from the template; this will NOT be submitted. Please edit all fields so they contain correct values (e to edit)' if options.outfile: yesmessage = 'Save the report into %s .' % options.outfile else: yesmessage = 'Submit the bug report via email.' x = ui.select_options(prompt, menuopts, {'y': yesmessage, 'n': "Don't submit the bug report; instead, " "save it in a temporary file (exits reportbug).", 'q': "Save it in a temporary file and quit.", 'a': "Attach a file.", 'd': "Detach an attachment file.", 'i': "Include a text file.", 'c': "Change editor and re-edit.", 'e': 'Re-edit the bug report.', 'l': 'Pipe the message through the pager.', 'p': 'print message to stdout.', 't': 'Add tags.', 's': 'Add a X-Debbugs-CC recipient (a CC but after BTS processing).', 'm': "Choose a mailer to edit the report."}) if x in ('a', 'i'): invalid = True while invalid: if x == 'i': attachfile = ui.get_filename('Choose a text file to include: ') else: attachfile = ui.get_filename('Choose a file to attach: ') if attachfile: # expand vars & glob the input string attachfile = os.path.expanduser(attachfile) attachfglob = glob(attachfile) # check if the globbing returns any result if not attachfglob: ui.display_failure("Can't find %s to include!\n", attachfile) # loop over the globbed 'attachfile', you can specify wildcards now for attachf in attachfglob: if os.access(attachf, os.R_OK) and os.path.isfile(attachf): if check_attachment_size(attachf, options.max_attachment_size): ewrite('The attachment file %s size is bigger than the maximum of %d bytes: ' 'reduce its size else the report cannot be sent\n' % (attachf, options.max_attachment_size)) else: invalid = False inline = (x == 'i') (message, filename, attachments) = include_file_in_report( message, filename, attachments, package, attachf, charset, inline=inline, draftpath=options.draftpath) if not inline: skip_editing = True else: ui.display_failure("Cannot include %s!\n", attachf) else: break elif x == 'd': skip_editing = True if not attachments: ewrite('No attachment file to detach.\n') else: detachprompt = 'Choose an attachment file to detach (an empty line will exit): ' myattachments = [] myattachments = [(x, '') for x in attachments] filetodetach = ui.menu(detachprompt, myattachments, 'Select the file:', default='', empty_ok=True) # only if selection is not empty and the file is in the attachment list if filetodetach != '' and filetodetach in attachments: attachments.remove(filetodetach) ewrite('Attachment file "%s" successfully detached.\n\n', filetodetach) else: ewrite('Nothing to detach.\n\n') elif x == 'c': ed = ui.get_filename('Choose editor: ', default=options.editor) if ed: editor = ed elif x == 'm': mailers = [(x, '') for x in list(utils.MUA.keys())] mailers.sort() mailer = ui.menu('Choose a mailer for your report', mailers, 'Select mailer: ', default='', empty_ok=True) if mailer and mailer != -1: if not utils.mua_exists(utils.MUA[mailer]): ewrite("Selected mail user agent cannot be found.\n") else: # get the MUA mailer = utils.MUA.get(mailer) # in case there are attachments if attachments: # notify that they will be lost if ui.yes_no( 'Editing the report will lose all attachments: are you sure you want to continue?', 'Yes, please', 'No, thanks', True): # if ok, go into the MUA options.mua = mailer break # else, go back to the menu else: pass # no attach, we can go directly into the MUA else: options.mua = mailer break skip_editing = True elif x in ('n', 'q'): justsave = True break elif x in ('l', 'p'): skip_editing = True if x == 'l': pager = os.environ.get('PAGER', 'sensible-pager') os.popen(pager, 'w').write(message) else: sys.stdout.write(message) elif x == 't': newtaglist = [] skip_editing = True ntags = debbugs.get_tags(severity, mode) newtaglist = ui.select_multiple( 'Do any of the following apply to this report?', ntags, 'Please select tags: ') if newtaglist: oldtags = '' newtags = '' if tags: oldtags = 'Tags: ' + tags newtaglist += tags.split() # suppress twins in the tag list newtaglist = list(set(newtaglist)) newtags = 'Tags: ' + ' '.join(newtaglist) else: oldtags = 'Severity: ' + severity + '\n' newtags = oldtags + 'Tags: ' + ' '.join(newtaglist) + '\n' if 'patch' in newtaglist: patch = True message = message.replace(oldtags, newtags) open(filename, 'w').write(message) elif x == 's': skip_editing = True ccemail = ui.get_string( ('Please add the email address. Just press ENTER if you ' 'don\'t want anymore.'), empty_ok=True, force_prompt=True) if ccemail: CCS.append(ccemail) elif x == 'y': if message == dmessage: x = ui.select_options( 'Report is unchanged. Edit this report or quit', 'Eqs', {'q': "Don't submit the bug report; instead, save it " "in a temporary file and quit.", 'e': 'Re-edit the bug report.', 's': 'Send report anyway.'}) if x == 'q': stopmsg(filename) sys.exit(1) break elif x == 's': ewrite('Sending empty report anyway...\n') break else: break return open(filename).read(), patch, justsave def find_package_for(filename, notatty=False, pathonly=False): ewrite("Finding package for '%s'...\n", filename) (newfilename, packages) = utils.find_package_for(filename, pathonly) if newfilename != filename: filename = newfilename ewrite("Resolved as '%s'.\n", filename) if not packages: ewrite("No packages match.\n") return (filename, None) elif len(packages) > 1: packlist = list(packages.items()) packlist.sort() if notatty: print("Please re-run reportbug selecting one of these packages:") for pkg, files in packlist: print(" " + pkg) sys.exit(1) packs = [] for pkg, files in packlist: if len(files) > 3: files[3:] = ['...'] packs.append((pkg, ', '.join(files))) package = ui.menu("Multiple packages match: ", packs, 'Select one ' 'of these packages: ', any_ok=True) # for urwid, when pressing 'Cancel' in the menu if package == -1: package = None return (filename, package) else: package = list(packages.keys())[0] ewrite("Using package '%s'.\n", package) return (filename, package) def validate_package_name(package): if not re.match(r'^[a-z0-9][a-z0-9\-\+\.]+$', package): ui.long_message("%s is not a valid package name.", package) package = None return package def get_other_package_name(others): """Displays the list of pseudo-packages and returns the one selected.""" result = ui.menu("Please enter the name of the package in which you " "have found a problem, or choose one of these bug " "categories:", others, "Enter a package: ", any_ok=True, default='') if result: return result else: return None def get_package_name(bts='debian', mode=MODE_EXPERT): others = debbugs.SYSTEMS[bts].get('otherpkgs') prompt = "Please enter the name of the package in which you have found " \ "a problem" if others: prompt += ", or type 'other' to report a more general problem." else: prompt += '.' prompt += " If you don't know what package the bug is in, " \ "please contact debian-user@lists.debian.org for assistance." options = [] pkglist = subprocess.getoutput('apt-cache pkgnames') if pkglist: options += pkglist.split() if others: options += list(others.keys()) package = None while package is None: package = ui.get_string(prompt, options, force_prompt=True) if not package: return if others and package and package == 'other': package = get_other_package_name(others) if not package: return package = validate_package_name(package) if package in ('kernel', 'linux-image'): ui.long_message( "Automatically selecting the package for the running kernel") package = utils.get_running_kernel_pkg() if mode < MODE_STANDARD: if package == 'reportbug': if not ui.yes_no('Is "reportbug" actually the package you are ' 'having problems with', 'Yes, I am actually experiencing a problem with ' 'reportbug.', 'No, I really meant to file a bug report on ' 'another package.'): return get_package_name(bts, mode) if mode < MODE_EXPERT: if package in ('bugs.debian.org', 'debbugs'): if ui.yes_no('Are you reporting a problem with this program ' '(reportbug)', 'Yes, this is actually a bug in ' 'reportbug.', 'No, this is really a problem in the ' 'bug tracking system itself.'): package = 'reportbug' if package in ('general', 'project', 'debian-general'): ui.long_message( "If you have a general problem, please do consider using " 'the available Debian support channels to narrow the problem ' 'down. This will help us together to resolve the problem ' 'quicker. See https://www.debian.org/support') if not ui.yes_no( "Are you sure this bug doesn't apply to a specific package?", 'Yes, this bug is truly general.', 'No, this is not really a general bug.', False): return get_package_name(bts, mode) if package == 'wnpp': if not ui.yes_no( 'Are you sure you want to file a WNPP report?', 'Yes, I am a developer or know what I\'m doing.', 'No, I am not a developer and I don\'t know what wnpp means.', False): return get_package_name(bts, mode) if package in ('ftp.debian.org', 'release.debian.org'): if not ui.yes_no('Are you sure you want to file a bug on %s?' % (package), 'Yes, I am a developer or know what I\'m doing.', 'No, I am not a developer and I don\'t know what %s is.' % (package), False): return get_package_name(bts, mode) return package def special_prompts(package, bts, ui, fromaddr, timeout, online, http_proxy): prompts = debbugs.SYSTEMS[bts].get('specials') if prompts: pkgprompts = prompts.get(package) if pkgprompts: return pkgprompts(package, bts, ui, fromaddr, timeout, online, http_proxy) return def offer_configuration(options): charset = locale.nl_langinfo(locale.CODESET) # It would be nice if there were some canonical character set conversion if charset.lower() == 'ansi_x3.4-1968': charset = 'us-ascii' ui.charset = charset if not options.configure: ui.long_message('Welcome to reportbug! Since it looks like this is ' 'the first time you have used reportbug, we are ' 'configuring its behavior. These settings will be ' 'saved to the file "%s", which you will be free to ' 'edit further.\n\n', utils.USERFILE) mode = ui.menu('Please choose the default operating mode for reportbug.', utils.MODES, 'Select mode: ', options.mode, order=utils.MODELIST) if options.configure or not options.interface: # if there is only one UI available, the it's 'text', else ask if len(AVAILABLE_UIS) == 1: interface = 'text' else: interface = ui.menu( 'Please choose the default interface for reportbug.', AVAILABLE_UIS, 'Select interface: ', options.interface, order=['text']) else: interface = options.interface online = ui.yes_no('Will reportbug often have direct ' 'Internet access? (You should answer yes to this ' 'question unless you know what you are doing and ' 'plan to check whether duplicate reports have been ' 'filed via some other channel.)', 'Yes, reportbug should assume it has access to the ' 'network always.', 'No, I am only online occasionally to send and ' 'receive mail.', default=(not options.offline)) def_realname, def_email = utils.get_email() try: if options.realname: realname = options.realname else: realname = def_realname except UnicodeDecodeError: realname = '' realname = ui.get_string('What real name should be used for sending bug ' 'reports?', default=realname, force_prompt=True) realname = realname.replace('"', '\\"') is_addr_ok = False while not is_addr_ok: from_addr = ui.get_string( 'Which of your email addresses should be used when sending bug ' 'reports? (Note that this address will be visible in the bug tracking ' 'system, so you may want to use a webmail address or another address ' 'with good spam filtering capabilities.)', default=(options.email or def_email), force_prompt=True) is_addr_ok = utils.check_email_addr(from_addr) if not is_addr_ok: ewrite('Your email address is not valid; please try another one.\n') stupidmode = not ui.yes_no( 'Do you have a "mail transport agent" (MTA) like Exim, Postfix or ' 'SSMTP configured on this computer to send mail to the Internet?', 'Yes, I can run /usr/sbin/sendmail without horrible things happening. ' 'If you can send email from this machine without setting an SMTP Host ' 'in your mailer, you should choose this answer.', 'No, I need to use an SMTP Host or I don\'t know if I have an MTA.', (not options.smtphost) if options.smtphost else False) if stupidmode: opts = [] if options.smtphost: opts += [options.smtphost] smtphost = ui.get_string( 'Please enter the name of your SMTP host. Usually it\'s called ' 'something like "mail.example.org" or "smtp.example.org". ' 'If you need to use a different port than default, use the ' '<host>:<port> alternative format.\n\n' 'Just press ENTER if you don\'t have one or don\'t know, and ' 'so a Debian SMTP host will be used.', options=opts, empty_ok=True, force_prompt=True) if smtphost: stupidmode = False else: smtphost = '' if smtphost: smtpuser = ui.get_string( ('If you need to use a user name to send email via "%s" on your ' 'computer, please enter that user name. Just press ENTER if you ' 'don\'t need a user name.' % smtphost), empty_ok=True, force_prompt=True) else: smtpuser = '' if smtphost: smtptls = ui.yes_no( 'Do you want to encrypt the SMTP connection with TLS (only ' 'available if the SMTP host supports it)?', 'Yes', 'No', default=False) http_proxy = ui.get_string( 'Please enter the name of your proxy server. It should only ' 'use this parameter if you are behind a firewall. ' 'The PROXY argument should be formatted as a valid HTTP URL,' ' including (if necessary) a port number;' ' for example, http://192.168.1.1:3128/. ' 'Just press ENTER if you don\'t have one or don\'t know.', empty_ok=True, force_prompt=True) if os.path.exists(utils.USERFILE): try: os.rename(utils.USERFILE, utils.USERFILE + '~') except OSError: ui.display_failure('Unable to rename %s as %s~\n', utils.USERFILE, utils.USERFILE) try: fd = os.open(utils.USERFILE, os.O_WRONLY | os.O_TRUNC | os.O_CREAT, 0o600) except OSError as x: efail('Unable to save %s; most likely, you do not have a ' 'home directory. Please fix this before using ' 'reportbug again.\n', utils.USERFILE) fp = os.fdopen(fd, 'w') print('# reportbug preferences file', file=fp) print('# character encoding: %s' % charset, file=fp) print('# Version of reportbug this preferences file was written by', file=fp) print('reportbug_version "%s"' % VERSION_NUMBER, file=fp) print('# default operating mode: one of:', end=' ', file=fp) print(', '.join(utils.MODELIST), file=fp) print('mode %s' % mode, file=fp) print('# default user interface', file=fp) print('ui %s' % interface, file=fp) print('# offline setting - comment out to be online', file=fp) if not online: print('offline', file=fp) else: print('#offline', file=fp) print('# name and email setting (if non-default)', file=fp) rn = 'realname "%s"' em = 'email "%s"' email_addy = (from_addr or options.email or def_email) email_name = (realname or options.realname or def_realname) if email_name != def_realname: print(rn % email_name, file=fp) else: print('# ' + (rn % email_name), file=fp) if email_addy != def_email: print(em % email_addy, file=fp) else: print('# ' + (em % email_addy), file=fp) uid = os.getuid() if uid < MIN_USER_ID: print('# Suppress user ID check for this user', file=fp) print('no-check-uid', file=fp) if smtphost: print('# Send all outgoing mail via the following host', file=fp) print('smtphost "%s"' % smtphost, file=fp) if smtpuser: print('smtpuser "%s"' % smtpuser, file=fp) print('#smtppasswd "my password here"', file=fp) else: print('# If you need to enter a user name and password:', file=fp) print('#smtpuser "my username here"', file=fp) print('#smtppasswd "my password here"', file=fp) if smtptls: print('# Enable TLS for the SMTP host', file=fp) print('smtptls', file=fp) else: print('# Enable this option if you need TLS for the SMTP host', file=fp) print('#smtptls', file=fp) if http_proxy: print('# Your proxy server address', file=fp) print('http_proxy "%s"' % http_proxy, file=fp) if stupidmode: print('# Disable fallback mode by commenting out the following:', file=fp) print('no-cc', file=fp) print('header "X-Debbugs-CC: %s"' % email_addy, file=fp) print('smtphost reportbug.debian.org', file=fp) else: print('# If nothing else works, remove the # at the beginning', file=fp) print('# of the following three lines:', file=fp) print('#no-cc', file=fp) print('#header "X-Debbugs-CC: %s"' % email_addy, file=fp) print('#smtphost reportbug.debian.org', file=fp) print('# You can add other settings after this line. See', file=fp) print('# /etc/reportbug.conf for a full listing of options.', file=fp) fp.close() ui.final_message('Default preferences file written. To reconfigure, ' 're-run reportbug with the "--configure" option.\n') def verify_option(option, opt, value, parser, *args): heading, valid = args if value == 'help': ewrite('%s:\n %s\n' % (heading, '\n '.join(valid))) sys.exit(1) elif value in valid: setattr(parser.values, option.dest, value) else: ewrite('Ignored bogus setting for %s: %s\n' % (opt, value)) def verify_append_option(option, opt, value, parser, *args): heading, valid = args # special case --tag: in valid we pass a function reference # as get_tags is dependant on the user mode, so we also have to convert # the mode to the integer value expected... FIXME if opt == '--tag' or opt == '-T': valid = sorted(valid(mode=utils.MODELIST.index(parser.values.mode)).keys()) + ['none'] if value == 'help': ewrite('%s:\n %s\n' % (heading, '\n '.join(valid))) sys.exit(1) elif value in valid: try: getattr(parser.values, option.dest).append(value) except AttributeError: setattr(parser.values, option.dest, [value]) else: ewrite('Ignored bogus setting for %s: %s\n' % (opt, value)) def main(): global quietly, ui try: locale.setlocale(locale.LC_ALL, '') except locale.Error as x: print('*** Warning:', x, file=sys.stderr) charset = locale.nl_langinfo(locale.CODESET) # It would be nice if there were some canonical character set conversion if charset.lower() == 'ansi_x3.4-1968': charset = 'us-ascii' defaults = dict(sendto="submit", mode="novice", mta="/usr/sbin/sendmail", check_available=True, query_src=True, debconf=True, editor='', offline=False, verify=True, check_uid=True, testmode=False, attachments=[], keyid='', body=None, bodyfile=None, smtptls=False, smtpuser='', smtppasswd='', paranoid=False, mbox_reader_cmd=None) # Convention: consider `option.foo' names read-only; they always contain # the original value as determined by the cascade of command-line options # and configuration files. When we need to adjust a value, we first say # "foo = options.foo" and then refer to just `foo'. args = utils.parse_config_files() for option, arg in list(args.items()): if option in utils.CONFIG_ARGS: defaults[option] = arg else: sys.stderr.write('Warning: untranslated token "%s"\n' % option) parser = optparse.OptionParser( usage='%prog [options] <package | filename>', version=VERSION) parser.set_defaults(**defaults) parser.add_option('-c', '--no-config-files', action="store_true", dest='noconf', help='do not include conffiles in report') parser.add_option('-C', '--class', action='callback', type='string', callback=verify_option, dest="klass", metavar='CLASS', callback_args=('Permitted report classes', debbugs.CLASSLIST), help='specify report class for GNATS BTSes') parser.add_option('-d', '--debug', action='store_true', default=False, dest='debugmode', help='send report only to yourself') parser.add_option('--test', action="store_true", default=False, dest="testmode", help="operate in test mode (maintainer use only)") parser.add_option('-e', '--editor', dest='editor', help='specify an editor for your report') parser.add_option('-f', '--filename', dest='searchfor', help='report the bug against the package containing the specified file') parser.add_option('--from-buildd', dest='buildd_format', help='parse information from buildd format: $source_$version') parser.add_option('--path', dest='pathonly', action="store_true", default=False, help='only search the path with -f') parser.add_option('-g', '--gnupg', '--gpg', action='store_const', dest='sign', const='gpg', help='sign report with GNU Privacy Guard (GnuPG/gpg)') parser.add_option('-G', '--gnus', action='store_const', dest='mua', const=utils.MUA['gnus'], help='send the report using Gnus') parser.add_option('--pgp', action='store_const', dest='sign', const='pgp', help='sign report with Pretty Good Privacy (PGP)') parser.add_option('-K', '--keyid', type="string", dest="keyid", help="key ID to use for PGP/GnuPG signatures") parser.add_option('-H', '--header', action='append', dest='headers', help='add a custom RFC2822 header to your report') parser.add_option('-P', '--pseudo-header', action='append', dest='pseudos', help='add a custom pseudo-header to your report') parser.add_option('--license', action='store_true', default=False, help='show copyright and license information') parser.add_option('-m', '--maintonly', action='store_const', dest='sendto', const='maintonly', help='send the report to the maintainer only') parser.add_option('-M', '--mutt', action='store_const', dest='mua', const=utils.MUA['mutt'], help='send the report using mutt') parser.add_option('--mirror', action='append', help='add a BTS mirror', dest='mirrors') parser.add_option('-n', '--mh', '--nmh', action='store_const', dest='mua', help='send the report using mh/nmh', const=utils.MUA['mh']) parser.add_option('-N', '--bugnumber', action='store_true', dest='bugnumber', help='specify a bug number to look for') parser.add_option('--mua', dest='mua', help='send the report using the specified mail user agent') parser.add_option('--mta', dest='mta', help='send the report using the ' 'specified mail transport agent') parser.add_option('--list-cc', action='append', dest='listcc', help='send a copy to the specified address') parser.add_option('-p', '--print', action='store_true', dest='printonly', help='output the report to standard output only') parser.add_option('--report-quiet', action='store_const', dest='sendto', const='quiet', help='file report without any mail to ' 'the maintainer or tracking lists') parser.add_option('-q', '--quiet', action='store_true', dest='quietly', help='reduce the verbosity of the output', default=False) parser.add_option('-s', '--subject', help='the subject for your report') parser.add_option('-x', '--no-cc', dest='nocc', action='store_true', help='do not send a copy of the report to yourself') parser.add_option('-z', '--no-compress', dest='nocompress', action='store_true', help='do not strip blank lines ' 'and comments from config files') parser.add_option('-o', '--output', dest='outfile', help='output the report' ' to the specified file (both mail headers and body)') parser.add_option('-O', '--offline', help='disable all external queries', action='store_true') parser.add_option('-i', '--include', action='append', help='include the specified file in the report') parser.add_option('-A', '--attach', action='append', dest='attachments', help='attach the specified file to the report') parser.add_option('-b', '--no-query-bts', action='store_true', dest='dontquery', help='do not query the BTS for reports') parser.add_option('--query-bts', action='store_false', dest='dontquery', help='query the BTS for reports') parser.add_option('-T', '--tag', action='callback', dest='tags', callback=verify_append_option, type='string', callback_args=('Permitted tags', debbugs.get_tags), help='add the specified tag to the report') parser.add_option('--http_proxy', '--proxy', help='use this proxy for ' 'HTTP accesses') parser.add_option('--email', help='specify originating email address') parser.add_option('--realname', help='specify real name for your report') parser.add_option('--smtphost', help='specify SMTP server for mailing') parser.add_option('--tls', help='use TLS to talk to SMTP servers', dest="smtptls", action='store_true') parser.add_option('--source', '--src', dest='source', default=False, help='report the bug against the source package ', action='store_true') parser.add_option('--smtpuser', help='username to use for SMTP') parser.add_option('--smtppasswd', help='password to use for SMTP') parser.add_option('--replyto', '--reply-to', help='specify Reply-To ' 'address for your report') parser.add_option('--query-source', action='store_true', dest='query_src', help='query on source packages, not binary packages') parser.add_option('--no-query-source', action='store_false', dest='query_src', help='query on binary packages only') parser.add_option('--security-team', action='store_true', dest='secteam', default=None, help='send the report only to the security team, if tag=security') parser.add_option('--no-security-team', action='store_false', default=None, dest='secteam', help='do not send the report only to the security team, if tag=security') parser.add_option('--debconf', action='store_true', help='include debconf settings in your report') parser.add_option('--no-debconf', action='store_false', dest='debconf', help='exclude debconf settings from your report') parser.add_option('-j', '--justification', help='include justification ' 'for the severity of your report') parser.add_option('-V', '--package-version', dest='pkgversion', help='specify the version number for the package') parser.add_option('-u', '--interface', '--ui', action='callback', callback=verify_option, type='string', dest='interface', callback_args=('Valid user interfaces', list(AVAILABLE_UIS.keys())), help='choose which user interface to use') parser.add_option('-Q', '--query-only', action='store_true', dest='queryonly', help='only query the BTS') parser.add_option('-t', '--type', action='callback', dest='type', callback=verify_option, type='string', callback_args=('Valid types of report', ('gnats', 'debbugs')), help='choose the type of report to file') parser.add_option('-B', '--bts', action='callback', dest='bts', callback=verify_option, type='string', callback_args=('Valid bug tracking systems', list(debbugs.SYSTEMS.keys())), help='choose BTS to file the report with') parser.add_option('-S', '--severity', action='callback', callback=verify_option, type='string', dest='severity', callback_args=('Valid severities', debbugs.SEVLIST), help='identify the severity of the report') parser.add_option('--template', action='store_true', help='output a template report only') parser.add_option('--configure', action='store_true', help='reconfigure reportbug for this user') parser.add_option('--check-available', action='store_true', help='check for new releases on various sites') parser.add_option('--no-check-available', action='store_false', dest='check_available', help='do not check for new ' 'releases') parser.add_option('--mode', action='callback', help='choose the operating ' 'mode for reportbug', callback=verify_option, type='string', dest='mode', callback_args=('Permitted operating modes', list(utils.MODES.keys()))) parser.add_option('-v', '--verify', action='store_true', help='verify ' 'integrity of installed package using debsums') parser.add_option('--no-verify', action='store_false', dest='verify', help='do not verify package installation') parser.add_option('-k', '--kudos', action='store_true', default=False, help='send appreciative email to the maintainer, rather ' 'than filing a bug report') parser.add_option('--body', dest="body", type="string", help="specify the body for the report as a string") parser.add_option('--body-file', '--bodyfile', dest="bodyfile", type="string", help="use the specified file as the body of the report") parser.add_option('-I', '--no-check-installed', action='store_false', default=True, dest='querydpkg', help='don\'t check whether the package is installed') parser.add_option('--check-installed', action='store_true', dest='querydpkg', help='check whether the specified ' 'package is installed when filing a report (default)') parser.add_option('--exit-prompt', action='store_true', dest='exitprompt', help='prompt before exiting', default=False) parser.add_option('--paranoid', action='store_true', dest='paranoid', help='show contents of message before sending') parser.add_option('--no-paranoid', action='store_false', dest='paranoid', help='don\'t show contents of message before sending ' '(default)') parser.add_option('--no-bug-script', dest="bugscript", default=True, action='store_false', help='don\'t execute the bug script (if present)') parser.add_option('--draftpath', dest="draftpath", help='Save the draft in this directory') parser.add_option('--timeout', type="int", dest='timeout', default=60, help='Specify the network timeout, in seconds [default: %default]') parser.add_option('--no-cc-menu', dest="ccmenu", default=True, action='store_false', help='don\'t show additional CC menu') parser.add_option('--no-tags-menu', dest="tagsmenu", default=True, action='store_false', help='don\'t show tags menu') parser.add_option('--mbox-reader-cmd', dest='mbox_reader_cmd', help="Specify the program to open the reports mbox.") parser.add_option('--max-attachment-size', type="int", dest='max_attachment_size', help="Specify the maximum size in byte for an attachment [default: 10485760].") parser.add_option('--latest-first', action='store_true', dest='latest_first', default=False, help='Order bugs to show the latest first') parser.add_option('--envelope-from', dest='envelopefrom', help='Specify the Envelope From (Return-path) address used to send the bug report') (options, args) = parser.parse_args() # Load the interface, *before* the configuration step. sys.argv = sys.argv[:1] + list(args) # if not set in config file or on cli, then set 10M as default if not options.max_attachment_size: options.max_attachment_size = 10485760 # check if attachment files exist, else exiting # all are checked, and it doesn't exit at the first missing if options.email: if not utils.check_email_addr(options.email): ewrite('Your email address is not valid; exiting.\n') sys.exit(1) if options.attachments: # needed to support glob for attachment in options.attachments: # remove each element options.attachments.remove(attachment) # and replace it with its glob options.attachments.extend(glob(attachment)) any_missing = False for attachment in options.attachments: if not os.path.exists(os.path.expanduser(attachment)): print('The attachment file %s does not exist.' % attachment) any_missing = True elif check_attachment_size(attachment, options.max_attachment_size): print('The attachment file %s size is bigger than the maximum of %d bytes: reduce ' \ 'its size else the report cannot be sent' % (attachment, options.max_attachment_size)) any_missing = True if any_missing: print("The above files can't be attached; exiting") sys.exit(1) if options.keyid and not options.sign: ewrite('Option -K/--keyid requires --gpg or --pgp sign option set, which currently is not; exiting.\n') sys.exit(1) if options.draftpath: options.draftpath = os.path.expanduser(options.draftpath) if not os.path.exists(options.draftpath): ewrite("The directory %s does not exist; exiting.\n" % options.draftpath) sys.exit(1) if options.mua and not options.template: if not utils.mua_is_supported(options.mua): ewrite("Specified mail user agent is not supported; exiting.\n") sys.exit(1) if not utils.mua_exists(options.mua): ewrite("Selected mail user agent cannot be found; exiting.\n") sys.exit(1) options.mua = utils.mua_name(options.mua) # try to import the specified UI, but only if template # is not set (it's useful only in 'text' UI). if options.interface and not options.template: interface = options.interface iface = '%(interface)s_ui' % vars() try: lib_package = __import__('reportbug.ui', fromlist=[iface]) newui = getattr(lib_package, iface) except UINotImportable as msg: ui.long_message('*** Unable to import %s interface: %s ' 'Falling back to text interface.\n', interface, msg) ewrite('\n') if newui.initialize(): ui = newui submit.ui = ui else: ui.long_message('*** Unable to initialize %s interface. ' 'Falling back to text interface.\n', interface) # Add INTERFACE as an environment variable to access it from the # script gathering the special information for reportbug, when # a new bug should be filed against it. os.environ['INTERFACE'] = interface if not ui.can_input(): defaults.update({'dontquery': True, 'notatty': True, 'printonly': True}) # force to report the bug against the source package if --from-buildd if options.buildd_format: options.source = True iface = UI(options, args) if not hasattr(ui, 'run_interface'): return iface.user_interface() return ui.run_interface(iface.user_interface) class UI(object): def __init__(self, options, args): self.options = options self.args = args def user_interface(self): body = '' filename = None notatty = not ui.ISATTY charset = locale.nl_langinfo(locale.CODESET) # It would be nice if there were some canonical character set conversion if charset.lower() == 'ansi_x3.4-1968': charset = 'us-ascii' # Allow the UI to know what charset we're using ui.charset = charset if self.options.configure: offer_configuration(self.options) sys.exit(0) elif self.options.license: print(COPYRIGHT) print() print(LICENSE) sys.exit(0) # These option values may get adjusted below, so give them a variable name. sendto = self.options.sendto check_available = self.options.check_available dontquery = self.options.dontquery headers = self.options.headers or [] pseudos = self.options.pseudos or [] mua = self.options.mua pkgversion = self.options.pkgversion quietly = self.options.quietly severity = self.options.severity smtphost = self.options.smtphost subject = self.options.subject bts = self.options.bts or 'debian' sysinfo = debbugs.SYSTEMS[bts] rtype = self.options.type or sysinfo.get('type') attachments = self.options.attachments pgp_addr = self.options.keyid bugnumber = self.options.bugnumber # if user specified a bug number on the command-line, don't query BTS if bugnumber: dontquery = True if self.options.body: body = textwrap.fill(self.options.body) elif self.options.bodyfile: try: if check_attachment_size(self.options.bodyfile, self.options.max_attachment_size): print('Body file %s size bigger than the maximum of %d bytes: ' \ 'reduce its size else the report cannot be sent' % ( self.options.bodyfile, self.options.max_attachment_size)) raise Exception body = open(self.options.bodyfile).read() except: efail('Unable to read body from file %s.\n', self.options.bodyfile) if body and not body.endswith('\n'): body += '\n' if self.options.queryonly: check_available = False if self.options.offline: check_available = False dontquery = True if self.options.tags: taglist = self.options.tags if 'none' in taglist: taglist = [] else: taglist = [] if self.options.testmode: self.options.debugmode = True self.options.tags = ['none'] check_available = False dontquery = True severity = 'normal' subject = 'testing' taglist = [] interactive = True if self.options.template: check_available = interactive = False dontquery = quietly = notatty = True mua = smtphost = None severity = severity or 'wishlist' subject = subject or 'none' taglist = taglist or [] if self.options.outfile or self.options.printonly: mua = smtphost = None if smtphost and smtphost.lower() in ('master.debian.org', 'bugs.debian.org'): ui.long_message( '*** Warning: %s is no longer an appropriate smtphost setting for reportbug: it has been superseded by reportbug.debian.org and this one is forced as smtphost; please update your .reportbugrc file.\n', smtphost.lower()) smtphost = 'reportbug.debian.org' if attachments and mua: ewrite('Attachments are incompatible with using an MUA. They will be ignored.\n') attachments = [] if utils.first_run(): if not self.args and not self.options.searchfor: offer_configuration(self.options) main() sys.exit(0) else: ewrite('Warning: no reportbug configuration found. Proceeding in %s mode.\n' % self.options.mode) mode = utils.MODELIST.index(self.options.mode) # Disable signatures when in printonly or mua mode # (since they'll be bogus anyway) sign = self.options.sign if (self.options.mua or self.options.printonly) and sign: sign = '' if self.options.mua: ewrite('The signature option is ignored when using an MUA.\n') elif self.options.printonly: ewrite('The signature option is ignored when producing a template.\n') uid = os.getuid() if uid < MIN_USER_ID: if notatty and not uid: ewrite("reportbug will not run as root non-interactively.\n") sys.exit(1) if not uid or self.options.check_uid: if not uid: message = "Running 'reportbug' as root is probably insecure!" else: message = "Running 'reportbug' as an administrative user " \ "is probably not a good idea!" message += ' Continue' if not ui.yes_no(message, 'Continue with reportbug.', 'Exit.', False): ewrite("reportbug stopped.\n") sys.exit(1) if (utils.first_run() and not self.args and not self.options.searchfor): offer_configuration(self.options) ewrite('To report a bug, please rerun reportbug.\n') sys.exit(0) foundfile = None package = None if not len(self.args) and not self.options.searchfor and not notatty and not self.options.buildd_format: package = get_package_name(bts, mode) elif self.options.buildd_format: # retrieve package name and version from the input string package, self.options.pkgversion = self.options.buildd_format.split('_') # TODO: fix it when refactoring # if not done as of below, it will ask for version when the package # is not available on the local system (try a dummy one, like foo_12-3) pkgversion = self.options.pkgversion elif len(self.args) > 1: ewrite("Please report one bug at a time.\n") ewrite("[Did you forget to put all switches before the " "package name?]\n") sys.exit(1) elif self.options.searchfor: (foundfile, package) = find_package_for(self.options.searchfor, notatty, self.options.pathonly) elif len(self.args): package = self.args[0] if package and package.startswith('/'): (foundfile, package) = find_package_for(package, notatty) elif package and self.options.source: # convert it to the source package if we are reporting for src package = utils.get_source_name(package) others = debbugs.SYSTEMS[bts].get('otherpkgs') if package == 'other' and others: package = get_other_package_name(others) if package in ('kernel', 'linux-image'): ui.long_message( "Automatically selecting the package for the running kernel") package = utils.get_running_kernel_pkg() if not package: efail("No package specified or we were unable to find it in the apt" " cache; stopping.\n") tfprefix = tempfile_prefix(package) if self.options.interface == 'text': ewrite('*** Welcome to reportbug. Use ? for help at prompts. ***\n') # we show this for the 2 "textual" UIs if self.options.interface in ('text', 'urwid'): ewrite('Note: bug reports are publicly archived (including the email address of the submitter).\n') try: blah = 'hello' except LookupError: ui.display_failure( 'Unable to use specified character set "%s"; you probably need ' 'either cjkcodecs (for users of Asian locales) or iconvcodec ' 'installed.\nFalling back to ASCII encoding.\n', charset) charset = 'us-ascii' else: ewrite("Detected character set: %s\n" "Please change your locale if this is incorrect.\n\n", charset) fromaddr = utils.get_user_id(self.options.email, self.options.realname, charset) ewrite("Using '%s' as your from address.\n", str(email.header.make_header(email.header.decode_header(fromaddr)))) if self.options.debugmode: sendto = fromaddr edname = utils.which_editor(self.options.editor) baseedname = os.path.basename(edname) if baseedname == 'sensible-editor': edname = utils.realpath('/usr/bin/editor') if not notatty and 'vi' in baseedname and mode < MODE_STANDARD and 'EDITOR' not in os.environ: if not ui.yes_no('You appear to be using the "vi" editor, which is ' 'not suited for new users. You probably want to ' 'change this setting by using "update-alternatives ' '--config editor" as root. (You can bypass this ' 'message in the future by using reportbug in ' '"standard" mode or higher.) ' 'Do you want to continue?', 'Continue filing this report.', 'Stop reportbug to change editors.', False): ewrite('Exiting per user request.\n') sys.exit(1) incfiles = "" if self.options.include: for f in self.options.include: if os.path.exists(f): fp = open(f) incfiles = '%s\n*** %s\n%s' % ( incfiles, f, fp.read()) fp.close() else: ewrite("Can't find %s to include!\n", f) sys.exit(1) incfiles += '\n' pkgavail = maintainer = origin = src_name = state = debsumsoutput = '' depends = [] recommends = [] suggests = [] conffiles = [] reportinfo = None isvirtual = (package in list(sysinfo.get('otherpkgs', {}).keys()) and package not in sysinfo.get('nonvirtual', [])) issource = installed = usedavail = False status = None if self.options.source: issource = True exinfo = None # If user specified a bug number on the command line try: if bugnumber: reportre = re.compile(r'^#?(\d+)$') match = reportre.match(package) if match: report = int(match.group(1)) exinfo = ui.show_report(report, 'debian', self.options.mirrors, self.options.http_proxy, self.options.timeout, queryonly=True, title=VERSION, archived=False, mbox_reader_cmd=self.options.mbox_reader_cmd) # When asking to re-display the bugs list, None is returned # given we're in the part of code that's executed when the # user pass a bug number on the cli, so we'll exit if exinfo is None: raise NoReport else: package = exinfo.package or exinfo.source else: efail("The report bug number provided seems to not exist.\n") except NoBugs: efail('No such bug report.\n') except NoReport: efail('Exiting.\n') if not pkgversion and self.options.querydpkg and \ sysinfo.get('query-dpkg', True) and \ package not in list(debbugs.SYSTEMS[bts].get('otherpkgs').keys()): ewrite("Getting status for %s...\n", package) status = utils.get_package_status(package) pkgavail, installed = status[1], status[6] # Packages that only exist to do weird dependency things deppkgs = sysinfo.get('deppkgs') if pkgavail and deppkgs: if installed and package in deppkgs: depends = status[2] if depends: newdepends = [] for x in depends: newdepends.extend(x) depends = newdepends if len(depends) == 1: if mode < MODE_ADVANCED: ewrite('Dependency package "%s" corresponds to ' 'actual package "%s".\n', package, depends[0]) package = depends[0] else: opts = [(x, (utils.get_package_status(x)[11] or 'not installed')) for x in depends] if mode >= MODE_ADVANCED: opts += [(package, status[11] + ' (dependency package)')] package = ui.menu('%s is a dependency package. ' 'Which of the following ' 'packages is the bug in?' % package, opts, 'Select one of these packages: ') ewrite("Getting status for %s...\n", package) status = utils.get_package_status(package) pkgavail, installed = status[1], status[6] if not pkgavail and not isvirtual: # Look for a matching source package packages = utils.get_source_package(package) if self.options.source: issource = True # package is already ok here, just need the version # so we loop over the bin pkgs looking for one installed # and then get its version if len(packages) > 0: for p in packages: v = utils.get_package_status(p[0])[0] if v: pkgversion = v break elif len(packages) > 0: src = utils.get_source_name(package) if len(packages) and not notatty: packages.sort() if src not in [x[0] for x in packages]: packages.append((src, 'Source package')) if len(packages) > 1: package = ui.menu( 'Which of the following packages is the bug in?', packages, empty_ok=True, prompt='Select one of these packages: ') else: package = packages[0][0] if not package: efail("No package specified; stopping.\n") if package != src: ewrite("Getting status for %s...\n", package) status = utils.get_package_status(package) pkgavail, installed = status[1], status[6] elif len(packages) > 1: issource = True else: ewrite('No matching source or binary packages.\n') if (not installed and not isvirtual and not issource) and not notatty: packages = utils.packages_providing(package) tmp = pack = None if not packages: if ui.yes_no('A package named "%s" does not appear to be installed; do ' 'you want to search for a similar-looking filename in ' 'an installed package' % package, 'Look for a file with a similar filename.', 'Continue filing with this package name.', True): pkgavail = False else: pack = package packages = [(package, '')] ewrite("Getting available info for %s...\n", package) status = utils.get_package_status(package, avail=True) check_available = False usedavail = True if not packages and not pkgavail and not pack: (tmp, pack) = find_package_for(package, notatty) if pack: status = None if not ui.yes_no("A package named '%s' does not appear to be installed " "on your system; however, '%s' contains a file named " "'%s'. Do you want to file your report on the " "package reportbug found" % (package, pack, tmp), 'Yes, use the package specified.', 'No, give up the search.'): efail("Package not installed; stopping.\n") if not status and pack: foundfile, package = tmp, pack ewrite("Getting status for %s...\n", package) status = utils.get_package_status(package) elif not packages: if not ui.yes_no( 'This package does not appear to be installed; continue ' 'with this report', 'Ignore this problem and continue.', 'Exit without filing a report.', False): efail("Package not installed; stopping.\n") elif (len(packages) > 1) or (packages[0][0] != package): this_package = [(package, 'Uninstalled/non-existent package')] packages.sort() package = ui.menu('Which of the following installed packages ' 'is the bug in?', packages + this_package, 'Select one of these packages: ', empty_ok=True) if not package: efail("No package specified; stopping.\n") else: ewrite("Getting status for %s...\n", package) status = utils.get_package_status(package) elif not pkgavail and not notatty and not isvirtual and not issource: if not ui.yes_no( 'This package does not appear to exist; continue', 'Ignore this problem and continue.', 'Exit without filing a report.', False): efail("Package does not exist; stopping.\n") sys.exit(1) # we can use status only if it's not a source pkg if not issource: (pkgversion, pkgavail, depends, recommends, conffiles, maintainer, installed, origin, vendor, reportinfo, priority, desc, src_name, fulldesc, state, suggests, section) = status buginfo = '/usr/share/bug/' + package bugexec = submitas = submitto = presubj = None reportwith = [] supplemental = [] if os.path.isfile(buginfo) and os.access(buginfo, os.X_OK): bugexec = buginfo elif os.path.isdir(buginfo): if os.path.isfile(buginfo + '/script') and os.access(buginfo + '/script', os.X_OK): bugexec = buginfo + '/script' if os.path.isfile(buginfo + '/presubj'): presubj = buginfo + '/presubj' if os.path.isfile(buginfo + '/control'): submitas, submitto, reportwith, supplemental = \ utils.parse_bug_control_file(buginfo + '/control') elif os.path.isfile('/usr/share/bug/default/' + package) \ and os.access('/usr/share/bug/default/' + package, os.X_OK): bugexec = '/usr/share/bug/default/' + package elif os.path.isdir('/usr/share/bug/default/' + package): buginfo = '/usr/share/bug/default/' + package if os.path.isfile(buginfo + '/script') and os.access(buginfo + '/script', os.X_OK): bugexec = buginfo + '/script' if os.path.isfile(buginfo + '/presubj'): presubj = buginfo + '/presubj' if os.path.isfile(buginfo + '/control'): submitas, submitto, reportwith, supplemental = \ utils.parse_bug_control_file(buginfo + '/control') if submitas and (submitas not in reportwith): reportwith += [submitas] if reportwith: # Remove current package from report-with list reportwith = [x for x in reportwith if x != package] if (pkgavail and self.options.verify and os.path.exists('/usr/bin/debsums') and not self.options.kudos and state == 'installed'): ewrite('Verifying package integrity...\n') rc, output = subprocess.getstatusoutput('/usr/bin/debsums --ignore-permissions -s ' + shlex.quote(package)) debsumsoutput = output if rc and not notatty: if not ui.yes_no('There may be a problem with your installation of ' + package + ';\nthe following problems were detected by debsums:\n' + output + '\nDo you still want to file a report', 'Ignore this problem and continue. This may be ' 'appropriate if you have fixed the package manually already. ' 'This problem may also result from the use of localepurge.', 'Exit without filing a report.', False, nowrap=True): efail("Package integrity check failed; stopping.\n") if not pkgversion or usedavail or (not pkgavail and not self.options.pkgversion and not self.options.source): if not bugnumber and not (isvirtual or notatty): pkgversion = ui.get_string('Please enter the version of the ' 'package this report applies to ' '(blank OK)', empty_ok=True, force_prompt=True) elif (check_available and not (self.options.kudos or notatty or self.options.offline) and state == 'installed' and bts == 'debian'): arch = utils.get_arch() check_more = (mode > MODE_STANDARD) if check_more: ewrite('Checking for newer versions at madison,' + ' incoming.debian.org and http://ftp-master.debian.org/new.html\n') else: ewrite('Checking for newer versions at madison...\n') (avail, toonew) = checkversions.check_available( package, pkgversion, timeout=self.options.timeout, check_incoming=check_more, check_newqueue=check_more, http_proxy=self.options.http_proxy, arch=arch) if toonew: if not ui.yes_no('\nYour version of %s (%s) is newer than that in Debian!\n' 'Do you still want to file a report' % (package, pkgversion), 'Ignore this problem and continue. This may be ' 'appropriate if you know this bug is present in older ' 'releases of the package, or you\'re running a mixed ' 'stable/testing installation.', 'Exit without filing a report.', False): efail("Newer released version; stopping.\n") if avail: availtext = '' availlist = list(avail.keys()) availlist.sort() for rel in availlist: availtext += ' %s: %s\n' % (rel, avail[rel]) if not ui.yes_no(('\nYour version (%s) of %s appears to be out of date.\nThe ' 'following newer release(s) are available in the Debian ' 'archive:\n' % (pkgversion, package)) + availtext + 'Do you still want to file a report', 'Ignore this problem and continue. This may be ' 'appropriate if you know this bug is still present in more ' 'recent releases of the package.', 'Exit without filing a report.', False, nowrap=True): efail("Newer released version; stopping.\n") bts = DEFAULT_BTS if self.options.bts: bts = self.options.bts ewrite("Will send report to %s (per request).\n", debbugs.SYSTEMS[bts].get('name', bts)) elif origin: if origin.lower() == bts: ewrite("Package originates from %s.\n", vendor or origin) reportinfo = None elif origin.lower() in list(debbugs.SYSTEMS.keys()): ewrite("Package originates from %s; overriding your system " "selection.\n", vendor or origin) bts = origin.lower() sysinfo = debbugs.SYSTEMS[bts] elif reportinfo: ewrite("Unknown origin %s; will send to %s.\n", origin, reportinfo[1]) rtype, submitto = reportinfo elif submitto: ewrite("Unknown origin %s; will send to %s.\n", origin, submitto) else: ewrite("Unknown origin %s; will send to %s.\n", origin, bts) elif reportinfo: rtype, submitto = reportinfo ewrite("Will use %s protocol talking to %s.\n", rtype, submitto) dontquery = True else: lsbr = subprocess.getoutput('lsb_release -si 2>/dev/null') if lsbr: distro = lsbr.strip().lower() if distro in debbugs.SYSTEMS: bts = distro ewrite("Will send report to %s (per lsb_release).\n", debbugs.SYSTEMS[bts].get('name', bts)) if rtype == 'mailto': rtype = 'debbugs' dontquery = True special = False if not body and not subject and not notatty: res = special_prompts(package, bts, ui, fromaddr, self.options.timeout, not self.options.offline and (check_available or not dontquery), self.options.http_proxy) if res: (subject, severity, h, ph, body, query) = res headers += h pseudos += ph if not query: dontquery = True special = True if not (dontquery or notatty or self.options.kudos): pkg, src = package, issource if self.options.query_src: src = True if src_name: pkg = src_name try: exinfo = ui.handle_bts_query(pkg, bts, self.options.timeout, self.options.mirrors, self.options.http_proxy, source=src, queryonly=self.options.queryonly, version=pkgversion, mbox_reader_cmd=self.options.mbox_reader_cmd, latest_first=self.options.latest_first) except UINotImplemented: exinfo = None except NoNetwork: sys.exit(1) except NoPackage: if not self.options.queryonly and maintainer and ui.yes_no( 'There is no record of this package in the bug tracking ' 'system.\nSend report directly to maintainer', 'Send the report to the maintainer (%s).' % maintainer, 'Send the report to the BTS anyway.'): rtype = 'debbugs' sendto = maintainer except NoBugs: ewrite('No bug reports found.\n') except NoReport: if self.options.queryonly: ewrite('Exiting at user request.\n') else: ewrite('Nothing new to report; exiting.\n') return except QuertBTSError: ewrite('Error accessing the BTS, no bugs information available.\n') if self.options.queryonly and not exinfo: return ccaddr = os.environ.get('MAILCC') if self.options.nocc: bccaddr = os.environ.get('MAILBCC') else: bccaddr = os.environ.get('MAILBCC', fromaddr) if maintainer: mstr = "Maintainer for %s is '%s'.\n" % (package, maintainer) ewrite(mstr) if 'qa.debian.org' in maintainer: ui.long_message('''\ This package seems to be currently "orphaned"; it also seems you're a bit interested in this package, since you're reporting a bug against it, so you might consider being involved in the package maintenance in Debian and/or adopting it. Please be aware that your report may not be resolved for a while, because the package seems to lack an active maintainer, but please GO ON and REPORT the bug, if there is one. For more details, please see: http://www.debian.org/devel/wnpp/''') if self.options.kudos and not self.options.debugmode: sendto = '%s@packages.debian.org' % package depinfo = "" # Grab dependency list, removing version conditions. if (depends or recommends or suggests) and not self.options.kudos: ewrite("Looking up dependencies of %s...\n", package) depinfo = (utils.get_dependency_info(package, depends) + utils.get_dependency_info(package, recommends, "recommends") + utils.get_dependency_info(package, suggests, "suggests")) if reportwith and not self.options.kudos: # retrieve information for the packages listed in 'report-with' bug # control file field for extrapackage in reportwith: ewrite("Getting status for related package %s...\n", extrapackage) extrastatus = utils.get_package_status(extrapackage) # depends if extrastatus[2]: extradepends = [x for x in extrastatus[2] if package not in x] ewrite("Looking up 'depends' of related package %s...\n", extrapackage) depinfo += utils.get_dependency_info(extrapackage, extradepends) # recommends if extrastatus[3]: extrarecommends = [x for x in extrastatus[3] if package not in x] ewrite("Looking up 'recommends' of related package %s...\n", extrapackage) depinfo += utils.get_dependency_info(extrapackage, extrarecommends, "recommends") # suggests if extrastatus[15]: extrasuggests = [x for x in extrastatus[15] if package not in x] ewrite("Looking up 'suggests' of related package %s...\n", extrapackage) depinfo += utils.get_dependency_info(extrapackage, extrasuggests, "suggests") if supplemental and not self.options.kudos: ewrite("Looking up status of additional packages...\n") depinfo += utils.get_dependency_info( package, [[x] for x in supplemental], rel='is related to') confinfo = [] if conffiles and not self.options.kudos: ewrite("Getting changed configuration files...\n") confinfo, changed = utils.get_changed_config_files( conffiles, self.options.nocompress) if self.options.noconf and changed: for f in changed: confinfo[f] = 'changed [not included]' elif changed and not notatty: while 1: x = ui.select_options( "*** WARNING: The following configuration files have been " "modified:\n" + "\n".join(changed) + "\nSend modified configuration files", 'Ynd', {'y': 'Send your modified configuration files.', 'n': "Don't send modified configuration files.", 'd': 'Display modified configuration files (exit with "q").'}) if x == 'n': for f in changed: confinfo[f] = 'changed [not included]' break elif x == 'd': PAGER = os.environ.get('PAGER', '/usr/bin/sensible-pager') ui.system(PAGER + ' ' + ' '.join(changed)) else: break conftext = '' if confinfo: conftext = '\n-- Configuration Files:\n' files = list(confinfo.keys()) files.sort() for f in files: conftext = conftext + '%s %s\n' % (f, confinfo[f]) if (self.options.debconf and os.path.exists('/usr/bin/debconf-show') and not self.options.kudos and installed): showpkgs = package if reportwith: showpkgs += ' ' + ' '.join(reportwith) (status, output) = subprocess.getstatusoutput( 'DEBCONF_SYSTEMRC=1 DEBCONF_NOWARNINGS=yes ' '/usr/bin/debconf-show %s' % showpkgs) if status: conftext += '\n-- debconf-show failed\n' elif output: if (notatty or ui.yes_no("*** The following debconf settings were detected:\n" + output + "\nInclude these settings in your report", 'Send your debconf settings.', "Don't send your debconf settings.", nowrap=True)): conftext += '\n-- debconf information:\n%s\n' % output else: conftext += '\n-- debconf information excluded\n' else: conftext += '\n-- no debconf information\n' ewrite('\n') prompted = False if interactive and not (self.options.kudos or exinfo) and presubj: ui.display_report(open(presubj).read() + '\n', presubj=True) if self.options.kudos: subject = subject or ('Thanks for packaging %s!' % package) elif exinfo: if special: body = '' prompted = True subject_ok = False while not subject_ok: subject = ui.get_string( 'Please provide a subject for your response.', default="Re: %s" % exinfo.subject, force_prompt=True) if subject: subject_ok = True else: ewrite("Providing a subject is mandatory.\n") # Check to make sure the bug still exists to avoid auto-reopens if subject and pkgversion: if not ui.yes_no('Does this bug still exist in version %s ' 'of this package?' % pkgversion, 'Yes, it does.', 'No, it doesn\'t (or I don\'t know).', default=False): pkgversion = None elif not subject and not notatty: prompted = True subject_ok = False while not subject_ok: subject = ui.get_string( 'Briefly describe the problem (max. 100 characters ' 'allowed). This will be the bug email subject, so keep the ' 'summary as concise as possible, for example: "fails to ' 'send email" or "does not start with -q option specified" ' '(enter Ctrl+c to exit reportbug without reporting a bug).', force_prompt=True) if subject: subject_ok = True else: ewrite("Providing a subject is mandatory.\n") if len(subject) > 100 and prompted and mode < MODE_EXPERT: subject = ui.get_string( 'Your description is a bit long; please enter a shorter subject. ' '(An empty response will retain the existing subject.)', empty_ok=True, force_prompt=True) or subject if package != 'wnpp' and mode < MODE_EXPERT: if foundfile: subject = foundfile + ": " + subject ewrite("Rewriting subject to '%s'\n", subject) elif not re.match(r"\S+:\s", subject) and not subject.startswith(package): subject = package + ": " + subject ewrite("Rewriting subject to '%s'\n", subject) listcc = self.options.listcc if not listcc: listcc = [] if not listcc and mode > MODE_STANDARD and rtype == 'debbugs' and not self.options.testmode and not self.options.template and self.options.ccmenu: listcc += ui.get_multiline( 'Enter any additional addresses this report should be sent to; press ENTER after each address.') # If the bug is reported against a package with a version that possibly # indicates a security update add the security or LTS team to CC # after user confirmation if pkgversion and package and not self.options.offline and mode > MODE_NOVICE and utils.is_security_update(package, pkgversion): if ui.yes_no('Do you want to report a regression because of a security update? ', 'Yes, please inform the LTS and security teams.', 'No or I am not sure.', True): distnumber = re.search('[+~]deb(\d+)u\d+', pkgversion).group(1) support = 'none' email_address = 'none' try: r = requests.get('https://security-tracker.debian.org/tracker/distributions.json', timeout=self.options.timeout) data = r.json() for key, value in data.items(): if distnumber == value['major-version']: support = value['support'] email_address = value['contact'] break if support != 'none' and utils.check_email_addr(email_address): listcc += [email_address] else: raise except requests.exceptions.RequestException: ewrite('Unable to connect to security-tracker.debian.org.\n' 'Please try again later or contact the LTS or security team via email directly.\n') except: # catch-all ewrite('No support team contact address could be identified.\n') if severity and rtype: severity = debbugs.convert_severity(severity, rtype) klass = self.options.klass if not notatty and not (exinfo or self.options.kudos): if not severity: if rtype == 'gnats': severities = debbugs.SEVERITIES_gnats default = 'non-critical' else: severities = debbugs.SEVERITIES if mode < MODE_STANDARD: ewrite("Removing release critical severities, since running in \'%s\' mode.\n" % utils.MODELIST[mode]) for sev in ['critical', 'grave', 'serious', 'does-not-build']: del severities[sev] default = 'normal' while not severity or severity not in debbugs.SEVLIST: severity = ui.menu("How would you rate the severity of this " "problem or report?", severities, 'Please select a severity level: ', default=default, order=debbugs.SEVLIST) # urwid has a cancel and a quit button that return < 0 if isinstance(severity, int) and severity < 0: sys.exit() if rtype == 'gnats': # Class of report klass = ui.menu("What sort of problem are you reporting?", debbugs.CLASSES, 'Please select a class: ', default='sw-bug', order=debbugs.CLASSLIST) severity = severity or 'normal' justification = self.options.justification if rtype == 'debbugs' and package != 'wnpp' and mode < MODE_EXPERT: if severity in ('critical', 'grave'): justification = ui.menu( 'You are reporting a ' + severity + ' bug; which of the ' 'following criteria does it meet?', debbugs.JUSTIFICATIONS[severity], 'Please select the impact of the bug: ', default='unknown') elif severity == 'serious': justification = ui.get_string( 'You are reporting a serious bug; which section of the ' 'Debian Policy Manual contains the "must" or "required" ' 'directive that it violates (E.g., "1.2.3")? ' 'Just type "unknown" if you are not sure (that would ' 'downgrade severity to normal).', force_prompt=True) if re.match('[0-9]+\.[0-9.]+', justification): justification = 'Policy ' + justification elif not justification: justification = 'unknown' if justification == 'unknown': justification = '' severity = 'normal' ewrite('Severity downgraded to "normal".\n') if severity == 'does-not-build': if pkgversion and not src_name: src_name = package if src_name and check_available and not notatty: ewrite('Checking buildd.debian.org for past builds of %s...\n', src_name) built = checkbuildd.check_built(src_name, http_proxy=self.options.http_proxy, timeout=self.options.timeout) severity = 'serious' justification = 'fails to build from source' # special-case only if it was built in the past if built: justification += ' (but built successfully in the past)' else: severity = 'serious' justification = 'fails to build from source' if not notatty: # special-case only if it was built in the past if ui.yes_no( 'Has this package successfully been built for this ' 'architecture in the past (you can look this up at ' 'buildd.debian.org)', 'Yes, this is a recently-introduced problem.', 'No, it has always been this way.'): justification += ' (but built successfully in the past)' HOMEDIR = os.environ.get('HOME', '/') if (rtype == 'debbugs' and not self.options.tags and not (notatty or self.options.kudos or exinfo) and package not in ('wnpp', 'ftp.debian.org', 'release.debian.org') and mode > MODE_NOVICE and self.options.tagsmenu): tags = debbugs.get_tags(severity, mode) taglist = ui.select_multiple( 'Do any of the following apply to this report?', tags, 'Please select tags: ') if taglist is None: # We've pressed cancel or quit in urwid sys.exit() patch = ('patch' in taglist) if justification and 'security' not in taglist and 'security' in \ justification: ewrite('Adding security tag to this report.\n') taglist += ['security'] if taglist: tags = ' '.join(taglist) else: tags = '' if 'security' in taglist: if self.options.secteam or (self.options.secteam is None and ui.yes_no( 'Are you reporting an undisclosed vulnerability? If so, in order to responsibly disclose the issue, it should not be sent to the public BTS right now, but instead to the private Security Team mailing list.', 'Yes, it is an undisclosed vulnerability, send this report to the private Security Team mailing list and not to the BTS.', 'No, it is already a publicly disclosed vulnerability, send this report to the BTS.', False)): sendto = 'team@security.debian.org' # Execute bug script if self.options.bugscript and bugexec and not self.options.kudos: # add a warning, since it can take a while, 587952 ewrite("Gathering additional data, this may take a while...\n") handler = '/usr/share/reportbug/handle_bugscript' # we get the return code of the script, headers and pseudo- set # by the script, and last the text output of the script (rc, bugscript_hdrs, bugscript_pseudo, text, bugscript_attachments) = \ utils.exec_and_parse_bugscript(handler, bugexec) if rc and not notatty: if not ui.yes_no('The package bug script %s exited with an error status (return ' 'code = %s). Do you still want to file a report?' % (bugexec, rc), 'Ignore this problem and continue.', 'Exit without filing a report.', False, nowrap=True): efail("Package bug script failed; stopping.\n") # add bugscript headers only if present if bugscript_hdrs: headers.extend(bugscript_hdrs.split('\n')) if bugscript_pseudo: pseudos.append(bugscript_pseudo.strip()) # add attachments only if no MUA is used, using attachments with a # MUA is not yet supported by reportbug. if bugscript_attachments and not mua: attachments += bugscript_attachments addinfo = None if not self.options.noconf: addinfo = "\n-- Package-specific info:\n" + text if addinfo and incfiles: incfiles = addinfo + "\n" + incfiles elif addinfo: incfiles = addinfo if bts == 'debian' and 'security' in taglist and sendto != 'team@security.debian.org': ewrite('Will send a CC of this report to the Debian Security Team.\n') listcc += ['Debian Security Team <team@security.debian.org>'] # Prepare bug report if self.options.kudos: message = '\n\n' if not mua: SIGFILE = os.path.join(HOMEDIR, '.signature') try: message = "\n\n-- \n" + open(SIGFILE).read() except IOError: pass else: p = submitas or package # multiarch: remove arch qualifier only if we're not reporting # against the src package if not p.startswith('src:'): p = p.split(':')[0] message = utils.generate_blank_report( p, pkgversion, severity, justification, depinfo, conftext, foundfile, incfiles, bts, exinfo, rtype, klass, subject, tags, body, mode, pseudos, debsumsoutput, issource=issource) # Substitute server email address if submitto and '@' not in sendto: if '@' in submitto: sendto = submitto else: if exinfo: if sendto != 'submit': sendto = '%d-%s' % (exinfo.bug_num, sendto) else: sendto = str(exinfo.bug_num) sendto = sendto + '@' + submitto elif '@' not in sendto: if exinfo: if sendto != 'submit': sendto = '%d-%s' % (exinfo.bug_num, sendto) else: sendto = str(exinfo.bug_num) try: sendto = sysinfo['email'] % sendto except TypeError: sendto = sysinfo['email'] sendto = email.utils.formataddr((sysinfo['name'] + ' Bug Tracking System', sendto)) mailing = not (mua or self.options.printonly or self.options.template) message = "Subject: %s\n%s" % (subject, message) justsave = False if mailing: fh, filename = TempFile(prefix=tfprefix, dir=self.options.draftpath) fh.write(message) fh.close() oldmua = mua or self.options.mua if not self.options.body and not self.options.bodyfile: message, haspatch, justsave = handle_editing( filename, message, self.options, sendto, attachments, package, severity, mode, charset=charset, tags=tags) if haspatch: patch = True if not oldmua and self.options.mua: mua = self.options.mua if mua: mailing = False elif not sendto: print(message, end=' ') cleanup_temp_file(filename) return cleanup_temp_file(filename) if not mua and patch and not attachments and not notatty: while True: patchfile = ui.get_filename( 'What is the filename of the patch (if none, or you have ' 'already included it, just press ENTER)?', force_prompt=True) if patchfile: attachfile = os.path.expanduser(patchfile) # loop over the glob of 'attachfile', we support glob now for attachf in glob(attachfile): if os.path.exists(attachfile): attachments.append(attachfile) else: ewrite('%s not found!', attachfile) else: break if CCS: listcc += CCS if listcc: headers.append('X-Debbugs-CC: ' + ', '.join(listcc)) # Pass both headers and pseudo-headers (passed on command-line, f.e.) body, headers, pseudoheaders = utils.cleanup_msg(message, headers, pseudos, rtype) if sign: ewrite('Passing message to %s for signature...\n', sign) oldbody = body body = submit.sign_message(body, fromaddr, package, pgp_addr, sign, self.options.draftpath) if not body: ewrite('Signature failed; sending message unsigned.\n') body = oldbody if pseudoheaders: body = '\n'.join(pseudoheaders) + '\n\n' + body # Strip the body of useless whitespace at the end, then put a final # newline in the message. See #234963. body = body.rstrip('\n') + '\n' if justsave: fh, outputfile = TempFile(prefix=tfprefix, dir=self.options.draftpath) fh.close() mua = mailing = False # fake sending the report, it actually saves it in a tempfile # but with all the email headers and stuff submit.send_report( body, attachments, mua, fromaddr, sendto, ccaddr, bccaddr, headers, package, charset, mailing, sysinfo, rtype, exinfo, outfile=self.options.outfile or outputfile, mta=None, smtphost=None) else: submit.send_report( body, attachments, mua, fromaddr, sendto, ccaddr, bccaddr, headers, package, charset, mailing, sysinfo, rtype, exinfo, self.options.replyto, self.options.printonly, self.options.template, self.options.outfile, self.options.mta, self.options.kudos, self.options.smtptls, smtphost, self.options.smtpuser, self.options.smtppasswd, self.options.paranoid, self.options.draftpath, self.options.envelopefrom) if self.options.exitprompt: ui.get_string('Please press ENTER to exit reportbug: ') return if __name__ == '__main__': try: main() except KeyboardInterrupt: ewrite("\nreportbug: exiting due to user interrupt.\n") except debbugs.Error as x: ewrite('error accessing BTS: %s\n' % x)