typos in failsafeXinit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xorg (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xorg
From now-closed bug 310126:
-----
edit_config() {
backup_
xorg_
cp /etc/X11/xorg_conf ${xorg_conf_tmp}
zenity --text-info --editable --filename=
}
There is a typo on the cp line: /etc/X11/xorg_conf should be /etc/X11/xorg.conf .
Also, this will cause xorg.conf to be overwritten with an empty file if the user hits Esc at the zenity prompt. The last two lines should be replaced with
zenity --text-info --editable --filename=
mv "$xorg_conf_tmp" /etc/X11/xorg.conf
Finally, are you SURE that a malicious user can’t gain any kind of unauthorized access by editing xorg.conf?
-------
I would also note that "mktmp" is a typo of "mktemp". Rather than using /tmp explicitly, the "-t" argument is recommended. i.e. mktemp -t xorg.conf.XXXXXXXX
Fixed that in git yesterday, along with another typo