Fossil

Check-in [9066bf13]
Login

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

Overview
Comment:When tracing the 'anoncap' or 'hascap' commands, which share an implementation, show which one is being traced.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9066bf13717c56e86a59a2d3d905f2e753e5bc69
User & Date: mistachkin 2016-08-18 02:54:01
Context
2016-08-18
11:03
Make sure auto-hyperlink works for anonymous. check-in: a2730fea user: drh tags: trunk
03:04
Defer copying the capabilities for the logged in user until after the special 'auto-hyperlink' processing is completed; otherwise, the anonymous permissions may not gain the 'h' permission. Closed-Leaf check-in: ae36cd66 user: mistachkin tags: anonPermHyperlink
02:54
When tracing the 'anoncap' or 'hascap' commands, which share an implementation, show which one is being traced. check-in: 9066bf13 user: mistachkin tags: trunk
02:51
Correct TH1 tracing related to the 'hascap' and 'anycap' TH1 commands. check-in: 901f1839 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/th_main.c.

647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
  for(i=1; rc==1 && i<argc; i++){
    if( g.thTrace ){
      Th_ListAppend(interp, &zCapList, &nCapList, argv[i], argl[i]);
    }
    rc = login_has_capability((char*)argv[i],argl[i],*(int*)p);
  }
  if( g.thTrace ){
    Th_Trace("[hascap %#h] => %d<br />\n", nCapList, zCapList, rc);
    Th_Free(interp, zCapList);
  }
  Th_SetResultInt(interp, rc);
  return TH_OK;
}

/*







|







647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
  for(i=1; rc==1 && i<argc; i++){
    if( g.thTrace ){
      Th_ListAppend(interp, &zCapList, &nCapList, argv[i], argl[i]);
    }
    rc = login_has_capability((char*)argv[i],argl[i],*(int*)p);
  }
  if( g.thTrace ){
    Th_Trace("[%s %#h] => %d<br />\n", argv[0], nCapList, zCapList, rc);
    Th_Free(interp, zCapList);
  }
  Th_SetResultInt(interp, rc);
  return TH_OK;
}

/*