HP3000-L Archives

February 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Gavin Scott <[log in to unmask]>
Reply To:
Gavin Scott <[log in to unmask]>
Date:
Tue, 16 Feb 1999 19:07:08 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
Ted asks:
> Why does changing a permanent file to temporary (e.g. FCLOSE with a
> disposition of 5) require PM cap?

Because it's the only thing stopping you from stealing a file you don't
own.

Try:

FOPEN EDITOR.PUB.SYS for read access (anyone can do this).
FCLOSE disp=5 (will require PM).

*poof*

EDITOR.PUB.SYS is now gone and is a temporary file.  You can do a :SAVE
or another FOPEN/FCLOSE to turn it into a local permanent file if you
like.  If it didn't require PM, then anyone who could open a file could
remove it.

This was a cute way to rename files across accounts before there was
POSIX.

G.

ATOM RSS1 RSS2