🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1228

sort creates readable files in /usr/tmp

#1228
From: Alan Lee Wendt
Date: Tue, 08 Nov 1988 09:38
8 lines
715 bytes
Apropos of security, Berkeley sort creates readable temp files
in /usr/tmp, due to non-intuitive behavior in fopen, which
when it creates new files always does it with 0666 permissions.
The fix is to do the creat manually in the newfile() routine
before calling fopen.  If you have a binary-only system, change
your umask before sorting.

Alan W.
Technical Details
Message-ID: <7739@megaron.arizona.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!bionet!ig!arizona!wendt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!bionet!ig!arizona!wendt
From: wendt@arizona.edu (Alan Lee Wendt)
Newsgroups: comp.bugs.4bsd,news.sysadmin
Subject: sort creates readable files in /usr/tmp
Message-ID: <7739@megaron.arizona.edu>
Date: 8 Nov 88 09:38:46 GMT
Organization: U of Arizona CS Dept, Tucson
Lines: 7