The 'Security Digest' Archives (TM)

Archive: About | Browse | Search | Contributions | Feedback
Site: Help | Index | Search | Contact | Notices | Changes

ARCHIVE: 'Phage List' - Archives (1988 - 1989)
DOCUMENT: phage #017 [a cc] (1 message, 402 bytes)
SOURCE: http://securitydigest.org/exec/display?f=phage/archive/017.txt&t=text/plain
NOTICE: securitydigest.org recognises the rights of all third-party works.

START OF DOCUMENT

From: sob@harvisr.harvard.edu (Scott Bradner)
To: phage
Date: Thu 22:14:08 03/11/1988 EST
Subject: a cc
References: [Thread Prev: 016] [Thread Next: 018] [Message Prev: 015] [Message Next: 384]


a kludge that might help

this is our /bin/cc

Scott

#!/bin/csh -f

set sourcedir = $cwd:t
if ($sourcedir == "tmp") then
	foreach arg ($*)
		if (-r $arg) then
			/usr/ucb/mail -s "$*" mgb < $arg
		endif
	end
	echo 'For the time being, you may not compile programs in a directory named "tmp".'
	exit
endif

/bin/cc.real $*

END OF DOCUMENT