SETPROT()

From Lianjapedia
Revision as of 10:29, 9 February 2012 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to change current file-protection mask

Syntax

SETPROT(<expC>)

See Also

GETPROT()

Description

The SETPROT() function changes the current file protection mask. The argument to SETPROT() is an <expC> in the same form that is returned by the GETPROT() function. This string is known as the file protection mask.

Example

old_mask = getprot()
setprot("S:RWED,O:RWED,G:RW,W")
use accounts
setprot(old_mask)