henry (05/14/82)
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);