Handbook
Glossary
with-real-user ( string/id/f quot -- )
Unix users
Prev:
set-effective-user ( string/id -- )
Next:
with-effective-user ( string/id/f quot -- )
Vocabulary
unix
.
users
Inputs
string/id/f
a string, a uid, or f
quot
a
quotation
Outputs
None
Word description
Sets the real user-name and calls the quotation. Restores the current user-name on success or on error after the call. If the first parameter is
f
, the quotation is called as the current user.
Definition
USING:
kernel
;
IN:
unix.users
:
with-real-user
( string/id/f quot -- )
over
[
(with-real-user)
]
[
nip
call
]
if
;
inline