set-uid and set-gid change the effective uid as well. It is therefore

not only required to update the cache but also to set the thread-local value.
This commit is contained in:
mainzelm 2003-02-20 17:13:55 +00:00
parent a1b0768745
commit 673dbaffdb
1 changed files with 2 additions and 1 deletions

View File

@ -317,7 +317,8 @@
(with-lock eXid-lock (with-lock eXid-lock
(lambda () (lambda ()
(process-set-Xid Xid) (process-set-Xid Xid)
(set! *eXid-cache* (process-user-effective-Xid))))) (set! *eXid-cache* (process-user-effective-Xid))
(thread-set-eXid! *eXid-cache*))))
(define (with-user-effective-Xid* new-eXid thunk) (define (with-user-effective-Xid* new-eXid thunk)
(let ((changed-eXid (let ((changed-eXid