]> git.eshelyaron.com Git - emacs.git/commit
(battery-status-function) Fix errors in Termux
authorLucien Cartier-Tilet <lucien@phundrak.com>
Fri, 14 Jan 2022 08:17:25 +0000 (09:17 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 14 Jan 2022 08:26:06 +0000 (09:26 +0100)
commit3c0e51e4e59f45d6f6268223fa4b91de0053b36a
treee068172402ae967993374eece3e96e1dcdd57a0c
parent39114e1e2b2cf7042cb5e4e6b3a0367ebfd53555
(battery-status-function) Fix errors in Termux

* lisp/battery.el (battery-status-function): In Termux, neither
/sys/ or /proc/ are readable on phones that are not rooted. This
patch makes Emacs verify if they are readable before it attemps
reading them (bug#53026).

Copyright-paperwork-exempt: yes
lisp/battery.el