🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.v7
Article #77

sort tempfile permissions

#77
From: utzoohenry
Date: Fri, 14 May 1982 00:19
6 lines
605 bytes
The sort(1) program carefully makes its first tempfile mode 0600, but
then fopen(...,"w")'s the rest without bothering to make them private.
This is a bit inappropriate when the user may be sorting confidential
data.  The fix is easy;  in sort.c/newfile(), just before "nfiles++;",
add this line:
		chmod(f, 0600);
Technical Details
Message-ID: <bnews.utzoo.2043>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!henry
Newsgroups: net.bugs.v7
Title: sort tempfile permissions 
Article-I.D.: utzoo.2043
Posted: Fri May 14 00:19:55 1982
Received: Fri May 14 00:19:55 1982
Subject: sort tempfile permissions
Date: Fri, 14 May 1982 00:19:55 +0000
Message-ID: <bnews.utzoo.2043>