Skip to content

return BSD operating systems' version, instead of "Unknown N/A"

Vinícius Zavam requested to merge egypcio/tor:bsd_libc into main

by applying this patch, we would:

  • return something other than "Unknown N/A" as libc version should we run on a BSD system;
  • get a clear view of which exact version of the system we are running (re: BSD operating systems);
  • we verify and identify versions for DragonFlyBSD, FreeBSD, OpenBSD and NetBSD;

e.g.: instead of only getting that we are Unknown N/A as libc we shall now get a proper information. taking FreeBSD as example we would be returning the following:

BSD 1400073 as libc

the complete output would be something like this:

% tor --version
Tor version 0.4.8.0-alpha-dev (git-863428d753008f0e).
Tor is running on FreeBSD with Libevent 2.1.12-stable, OpenSSL 1.1.1s-freebsd, Zlib 1.2.12, Liblzma 5.2.5, Libzstd 1.5.2 and BSD 1400073 as libc.
Tor compiled with clang version 14.0.5
Edited by Vinícius Zavam

Merge request reports

Loading