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 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);