Steve Kemp's Blog

Debian & Free Software

About This Site

This is a simple blog relating to Debian & Free Software issues.

Archive

The number one super-guy!
18th July 2006

How not to prompt for passwords in your code:

skx@desktop:/tmp/retchmail-1.0$ grep system\( *.cc
retchmail.cc:           system("stty -echo 2>/dev/null");
retchmail.cc:           system("stty echo 2>/dev/null");

(Since anybody can trojan PATH.)

Still otherwise the code looks good :)

Tags

Created by Chronicle v3.1