diff options
author | Jeremy Allison <jra@samba.org> | 2010-02-12 23:18:53 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-02-12 23:18:53 -0800 |
commit | 9252df53d95d6ebe43314ffd87a9dda940b1ae10 (patch) | |
tree | 3a7034e7e9bfe5c686b4c93716c41854c9eb46f6 /source3/lib/afs_settoken.c | |
parent | d46d7717c7bdc1b404ff53d7831ed00d556a940f (diff) | |
download | samba-9252df53d95d6ebe43314ffd87a9dda940b1ae10.tar.gz samba-9252df53d95d6ebe43314ffd87a9dda940b1ae10.tar.bz2 samba-9252df53d95d6ebe43314ffd87a9dda940b1ae10.zip |
Use sec_initial_uid() in the places where being root doesn't matter,
and 0 in the places where it does.
Jeremy
Diffstat (limited to 'source3/lib/afs_settoken.c')
-rw-r--r-- | source3/lib/afs_settoken.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/afs_settoken.c b/source3/lib/afs_settoken.c index 6421c0a55b..80eed13e52 100644 --- a/source3/lib/afs_settoken.c +++ b/source3/lib/afs_settoken.c @@ -236,7 +236,7 @@ bool afs_settoken_str(const char *token_string) if (!afs_decode_token(token_string, &cell, &ticket, &ct)) return False; - if (geteuid() != 0) + if (geteuid() != sec_initial_uid()) ct.ViceId = getuid(); result = afs_settoken(cell, &ct, ticket); |