simon-git: agedu (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Thu Mar 1 18:21:47 GMT 2018


TL;DR:
  3d5aed5 Revise parsing of /proc/net/tcp[6] for magic HTTP auth.
  9421c00 Remove unused variables spotted by -Wall.

Repository:     https://git.tartarus.org/simon/agedu.git
On the web:     https://git.tartarus.org/?p=simon/agedu.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2018-03-01 18:21:47

commit 3d5aed5c2e44c2009faf9db902014e5722accc2d
web diff https://git.tartarus.org/?p=simon/agedu.git;a=commitdiff;h=3d5aed5c2e44c2009faf9db902014e5722accc2d;hp=8a8299e277e9751a8e8717f59341d1863fb365e4
Author: Simon Tatham <anakin at pobox.com>
Date:   Thu Mar 1 18:03:50 2018 +0000

    Revise parsing of /proc/net/tcp[6] for magic HTTP auth.
    
    I had assumed that the address and uid fields of each line of those
    files would always occur at fixed column numbers. But in fact, that's
    not true, because checking the kernel source, the initial sequence
    number on the line is printed using a "%4d" printf format, which means
    that if there are enough simultaneous connections on a given machine
    then it could overflow to 5 digits and cause all the subsequent column
    positions to be off by one.
    
    Now we parse on a word-by-word basis, which should be more robust.

 httpd.c | 45 +++++++++++++++++++++++++++++++++++++--------
 1 file changed, 37 insertions(+), 8 deletions(-)

commit 9421c00aa49b5da0ff8073db1fbf3b77c73394d7
web diff https://git.tartarus.org/?p=simon/agedu.git;a=commitdiff;h=9421c00aa49b5da0ff8073db1fbf3b77c73394d7;hp=3d5aed5c2e44c2009faf9db902014e5722accc2d
Author: Simon Tatham <anakin at pobox.com>
Date:   Thu Mar 1 18:13:18 2018 +0000

    Remove unused variables spotted by -Wall.

 html.c  | 5 +----
 httpd.c | 7 +------
 2 files changed, 2 insertions(+), 10 deletions(-)



More information about the tartarus-commits mailing list