Article View: net.bugs
Article #67Secretmail Bug and Fix
From: utzoo!decvax!cca!hplabs!hao!seis...
Date: Tue, 07 Dec 1982 21:12
Date: Tue, 07 Dec 1982 21:12
22 lines
1000 bytes
1000 bytes
If you have your umask set to something like 077, when you
use enroll to give yourself a secretmail key, your key file
will be unreadable by others. Likewise, if you xsend to someone
while your umask is restrictive, their secretmail from you will
be unreadable by them. To fix this, after line 62 in
xsend.c, which reads:
if(i==10) xfatal("cannot create mail file");
add:
if (chmod(line, 0666) < 0)
xfatal("cannot make mail file readable -- check your umask");
and after line 31 in enroll.c, which reads:
close(i);
add:
if (chmod(fname, 0644) < 0)
xfatal("cannot make key file readable -- check your umask");
Technical Details
Message-ID:
<bnews.alice.1275>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!cca!hplabs!hao!seismo!harpo!zeppo!whuxk!houxm!npois!npoiv!alice!sjb@sri-unix Newsgroups: net.bugs Title: Secretmail Bug and Fix Article-I.D.: alice.1275 Posted: Tue Dec 7 21:12:04 1982 Received: Sat Dec 11 07:53:54 1982 Subject: Secretmail Bug and Fix Date: Tue, 07 Dec 1982 21:12:04 +0000 Message-ID: <bnews.alice.1275>