Fossil

Check-in [b46d6092]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix bug from eb24a021d6 which left nobody with too many permissions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b46d6092dcc18be65a9bd08ddbc12f93180b262e
User & Date: eric 2008-08-02 18:32:27
Context
2008-08-03
16:47
Users unconditionally inherit capabilities of "anonymous". New capability "v" means to inherit capabilities of user "developer". Login is prohibited if the password is empty. check-in: 1f1d9652 user: drh tags: trunk
2008-08-02
18:32
Fix bug from eb24a021d6 which left nobody with too many permissions check-in: b46d6092 user: eric tags: trunk
2008-07-30
13:00
Allow for generating a Makefile that will also work for BSD Make (tested under NetBSD 3.1). check-in: e243a8df user: cle tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/login.c.

297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
      zCap = "";
    }
  }
  g.userUid = uid;
  if( g.zLogin && strcmp(g.zLogin,"nobody")==0 ){
    g.zLogin = 0;
  }
  if( uid>0 ){
    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);
    }
  }







|







297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
      zCap = "";
    }
  }
  g.userUid = uid;
  if( g.zLogin && strcmp(g.zLogin,"nobody")==0 ){
    g.zLogin = 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);
    }
  }