sudo: fix #254 (upstream patch).