[root@localhost fossil-2.4]# gdb ./fossil [45/2179] GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /root/fossil-2.4/fossil...done. (gdb) break repo_list_page Breakpoint 1 at 0x45c1ce: file ./src/main.c, line 1240. (gdb) run http --repolist /fossils (gdb) n 1278 n = db_int(0, "SELECT count(*) FROM sfile"); (gdb) n 1279 if( n>0 ){ (gdb) n 1308 @

No Repositories Found

(gdb) n 1310 @ (gdb) n 1312 cgi_reply(); (gdb) n HTTP/1.0 200 OK Date: Thu, 21 Dec 2017 19:02:47 GMT Connection: close X-UA-Compatible: IE=edge X-Frame-Options: SAMEORIGIN Cache-control: no-cache Content-Type: text/html; charset=utf-8 Content-Length: 132 Repository List

No Repositories Found

1313 sqlite3_close(g.db); (gdb) n 1314 g.db = 0; (gdb) n 1315 return n; (gdb) n 1316 } (gdb) n process_one_web_page (zNotFound=0x0, pFileGlob=0x0, allowRepoList=1) at ./src/main.c:1497 1497 }else if( zNotFound ){ (gdb) n 1506 @

Not Found

(gdb) n 1507 cgi_set_status(404, "not found"); (gdb) n 1508 cgi_reply(); (gdb) n HTTP/1.0 404 not found Date: Thu, 21 Dec 2017 19:03:14 GMT Connection: close X-UA-Compatible: IE=edge X-Frame-Options: SAMEORIGIN Cache-control: no-cache Content-Type: text/html; charset=utf-8 Content-Length: 151 Repository List

No Repositories Found

Not Found

1510 return; (gdb) n 1706 } (gdb) n cmd_http () at ./src/main.c:2226 2226 } (gdb) n main (argc=4, argv=0x7fffffffe678) at ./src/main.c:768 768 fossil_exit(0); (gdb) n [Inferior 1 (process 12740) exited normally] (gdb) q [root@localhost fossil-2.4]# ls -alh /fossils/ total 1.6M drwxr-xr-x 1 foouser foouser 8 Dec 21 14:12 . dr-xr-xr-x. 18 root root 259 Dec 21 13:55 .. -rw-r--r-- 1 foouser foouser 272K Dec 21 11:15 archsetup.fossil -rw-r--r-- 1 foouser foouser 224K Dec 21 11:15 guac-install-script.fossil -rw-r--r-- 1 foouser foouser 224K Dec 21 11:15 miscreports.fossil -rwxrwxrwx 1 foouser foouser 308K Dec 21 14:12 pkgReport.fossil -rw-r--r-- 1 foouser foouser 596K Dec 21 11:31 servercfg.fossil