Article View: net.bugs.v7
Article #77sort tempfile permissions
From: utzoohenry
Date: Fri, 14 May 1982 00:19
Date: Fri, 14 May 1982 00:19
6 lines
605 bytes
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-mailShow 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>