Fossil

Check-in [66ca04d452]
Login

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

Overview
Comment:Remove duplicate user from fossil user capabilities usage statement.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 66ca04d4524f344c063a5e4986610dd61480f79a
User & Date: andybradford 2013-11-10 15:35:59.825
Context
2013-11-11
17:32
Update the built-in SQLite to the latest trunk version that includes the WITHOUT ROWID enhancement. Fossil itself does not (yet) make use of this enhancement. check-in: 611e25d396 user: drh tags: trunk
2013-11-10
15:35
Remove duplicate user from fossil user capabilities usage statement. check-in: 66ca04d452 user: andybradford tags: trunk
2013-11-08
15:46
Fix temporary directory separator handling for Cygwin. For testing purposes. (Change taken over from SQLite's "cygDirSep" branch) check-in: 7bba46776c user: jan.nijtmans tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/user.c.
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
      db_multi_exec("UPDATE user SET pw=%Q, mtime=now() WHERE uid=%d",
                    zSecret, uid);
      free(zSecret);
    }
  }else if( n>=2 && strncmp(g.argv[2],"capabilities",2)==0 ){
    int uid;
    if( g.argc!=4 && g.argc!=5 ){
      usage("user capabilities USERNAME ?PERMISSIONS?");
    }
    uid = db_int(0, "SELECT uid FROM user WHERE login=%Q", g.argv[3]);
    if( uid==0 ){
      fossil_fatal("no such user: %s", g.argv[3]);
    }
    if( g.argc==5 ){
      db_multi_exec(







|







288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
      db_multi_exec("UPDATE user SET pw=%Q, mtime=now() WHERE uid=%d",
                    zSecret, uid);
      free(zSecret);
    }
  }else if( n>=2 && strncmp(g.argv[2],"capabilities",2)==0 ){
    int uid;
    if( g.argc!=4 && g.argc!=5 ){
      usage("capabilities USERNAME ?PERMISSIONS?");
    }
    uid = db_int(0, "SELECT uid FROM user WHERE login=%Q", g.argv[3]);
    if( uid==0 ){
      fossil_fatal("no such user: %s", g.argv[3]);
    }
    if( g.argc==5 ){
      db_multi_exec(