Overview
SHA1 Hash: | b46d6092dcc18be65a9bd08ddbc12f93180b262e |
---|---|
Date: | 2008-08-02 18:32:27 |
User: | eric |
Comment: | Fix bug from eb24a021d6 which left nobody with too many permissions |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/login.c from [c686a3eaf4] to [86fb4c3fd8].
@@ -299,11 +299,11 @@ } g.userUid = uid; if( g.zLogin && strcmp(g.zLogin,"nobody")==0 ){ g.zLogin = 0; } - if( uid>0 ){ + if( uid && g.zLogin ){ zNcap = db_text("", "SELECT cap FROM user WHERE login = 'nobody'"); login_set_capabilities(zNcap); if( db_get_int("inherit-anon",0) ){ zAcap = db_text("", "SELECT cap FROM user WHERE login = 'anonymous'"); login_set_capabilities(zAcap);