1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-11-03 04:27:17 -05:00
Commit Graph

293 Commits

Author SHA1 Message Date
fosslinux
a00fa5330d Fix URI inserting aribitary scripts
Fixes #118
Fixes #117

Encodes characters using html percent encoding.

I hope this is correct, I'm pretty sure it is, but can't be certain
right now.
2024-02-27 22:12:52 +11:00
fosslinux
ac249aaeef
Merge pull request #110 from RileyInkTheCat/master
Fix #92 properly
2024-02-27 10:29:09 +00:00
fosslinux
4407583da3
Merge pull request #112 from ryandesign/patch-1
Fix spelling of "receive"
2024-02-27 10:28:52 +00:00
fosslinux
af1aafbe0b
Merge pull request #113 from ryandesign/ryandesign-available
Fix spelling of "available"
2024-02-27 10:28:25 +00:00
fosslinux
103f21f50b
Merge pull request #115 from ryandesign/ryandesign-distributions
Fix spelling of "distributions"
2024-02-27 10:28:10 +00:00
fosslinux
7f1f3515f1
Merge pull request #114 from ryandesign/ryandesign-doesnt
Fix spelling of "doesn't"
2024-02-27 10:27:58 +00:00
Ryan Schmidt
e318b1b294 Fix spelling of "distributions" 2023-01-18 01:25:11 -06:00
Ryan Schmidt
3a8d4f007b Fix spelling of "receive" 2023-01-18 01:21:01 -06:00
Ryan Schmidt
d2007f675f Fix spelling of "available" 2023-01-18 01:18:28 -06:00
Ryan Schmidt
5fd9e72ed3 Fix spelling of "doesn't" 2023-01-18 01:14:28 -06:00
Mustached Squid
1d79de712d Previous attempt at fixing 'make install-root' had a tiny bug, which is
now solved
2022-06-17 15:26:52 +01:00
Mustached Squid
1d6aeecfc7 fix 'make install-root' clobbering existing gophermaps 2022-06-17 15:09:47 +01:00
fosslinux
da3390089c
Merge pull request #100 from omar-polo/master
fix all call to die() with NULL as an argument
2022-01-22 11:59:19 +11:00
fosslinux
d4ed70f218
Merge pull request #101 from omar-polo/manpage
some manpage fixes
2022-01-22 11:57:46 +11:00
Omar Polo
5ce302d516 simplify -u description 2022-01-21 18:06:03 +01:00
Omar Polo
7ca1bf85a0 fix usage of mandoc Pa macro
The Pa macro is intended to be "an absolute or relative file system
path, or a file or directory name"
2022-01-21 17:50:52 +01:00
Omar Polo
65f0107646 fix various mandoc errors
This fixes all applicable reports from `mandoc -Tlint -l gophernicus.8'
2022-01-21 17:44:53 +01:00
Omar Polo
f3f637311c document -nu 2022-01-21 17:36:24 +01:00
Omar Polo
f35631e8e2 fix all call to die() with NULL as an argument
This fixes all the calls to die so they pass a proper string and not
NULL.  die blindly pass its arguments to log_fatal, which in turns
relays on vprintf or such.  At least on OpenBSD, giving NULL instead
of a string for %s yields a log entry in syslog:

Jan 21 09:35:22 venera gophernicus: vfprintf %s NULL in "Error: %s %s\^M "

As a side effect, now some errors from pledge and unveil are slightly
more clear.
2022-01-21 09:43:32 +01:00
Ben Harris
2d3182ac63
Move to libera.chat (#98) 2021-05-28 07:06:07 +10:00
fosslinux
d601ca93e3
Merge pull request #93 from nikdoof/nikdoof-listener-makefile-patch
Don't use DESTDIR for binary paths in listener
2021-05-26 19:57:56 +10:00
fosslinux
bc5feea397
Merge pull request #96 from augfab/getcwd
Really check success of getcwd(3)
2021-05-26 19:54:35 +10:00
Augustin Fabre
f2ae5e80fc Really check success of getcwd(3)
`getcwd(3)' returns a NULL pointer when it fails, and a pointer to the buffer
when it succeeds. The array of characters (allocated on the stack) is not NULL,
so it cannot be used to check if `getcwd(3)' succeeded. Use the pointer
returned by `getcwd(3)' to check success.
2021-04-07 18:57:27 +02:00
Andrew Williams
0de9ccd963
Don't use DESTDIR for binary paths in listener
DESTDIR when used in packaging can represent a temporary directory or fake root used for packaging the application, so using this value for modifying the listener config is not ideal, as the binary path will be incorrect.
2021-02-03 15:53:02 +00:00
fosslinux
0dc47480f1 Release 3.1.1 2021-01-03 12:44:44 +11:00
fosslinux
ca567a8cb7 Add better install message 2021-01-03 12:44:44 +11:00
fosslinux
765bf3aab8 Fix various build system issues 2021-01-03 12:44:44 +11:00
fosslinux
e3dc741f67 Release 3.1 2020-12-31 19:08:58 +11:00
fosslinux
0e83a58df9 Silence install messages for configure test 2020-12-29 10:18:55 +11:00
fosslinux
852b15a65d Add release script 2020-12-29 10:05:07 +11:00
fosslinux
81b414b362 Update chagelog 2020-12-29 10:02:05 +11:00
fosslinux
7a02ffd8ec Allow document roots specified with relative paths
Closes #71

Implements this issue by transforming all relative paths into absolute
paths.
2020-12-28 11:03:33 +11:00
fosslinux
430e8f9ee0
Merge pull request #85 from gophernicus/new-build-system
Introduce new build system
2020-12-27 18:38:11 +11:00
fosslinux
237c18024e Fix issues with macos and systemd 2020-12-27 17:30:21 +11:00
fosslinux
9573940c7c Adapt travis for the new build system 2020-12-27 17:30:21 +11:00
fosslinux
44e50e2dab Further improvements, delete debian packaging 2020-12-27 17:30:21 +11:00
Ryan Kavanagh
c3ab769f8d Fix build system issues
Also, move the gophernicus man page to its appropriate section (8)
2020-12-27 17:30:21 +11:00
fosslinux
1720740bdd Introduce new build system
This build system is very different to the old build system, and is much
more inuitive.

It leverages a hand made configure script to generate the Makefile. The
listener is no longer auto-detected, unless specifically specified, and
no longer activated by default. That is not the place for a build system.
Along with the focus of moving to distribution repositiories, this 'feature'
is clearly unwanted by distributions.

Multiple listeners are now also supported, primarily for distributions.

Lastly, parallelism now works as well.
2020-12-27 17:30:21 +11:00
fosslinux
5aade41f00
Merge pull request #77 from augfab/fix/42
Fix issue #42
2020-11-18 08:58:27 +11:00
Augustin Fabre
9c0b6a66a4
Rework logging logic
This commit fixes issue #42 [0].

Debug level messages are masked unless option `-d' (debug) is used. In this
case, all messages are also printed to stderr.

syslog.h is included in the base POSIX only since issue 6 (POSIX:2001) [1].

`LOG_UPTO' is an extension, not defined by POSIX; an implementation is provided
here for platforms where it is missing.

This code is inspired by OpenBSD's httpd(8) logging functions [2].

[0] https://github.com/gophernicus/gophernicus/issues/42
[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/setlogmask.html
[2] https://cvsweb.openbsd.org/src/usr.sbin/httpd/log.c?rev=1.14&content-type=text/x-cvsweb-markup
2020-10-12 20:21:06 +02:00
fosslinux
8bb9a7cf50
Merge pull request #82 from augfab/fix/81
Replace spurious tabs in menu with dashes (#81)

Closes #81
2020-08-15 07:18:53 +00:00
Augustin Fabre
c5910d5340
Replace spurious tabs in menu with dashes (#81) 2020-08-13 23:46:20 +02:00
fosslinux
c74cfb33b6
Come on 2020-06-09 14:03:20 +10:00
fosslinux
f09e85be22
Fix prototype mismatch 2020-06-09 09:38:57 +10:00
fosslinux
39b4bd94fe
Cleanup makefile, do not install docs
Now that we have a manpage, it is much better for the user to
use the manpage.

The LICENSE has no need to be installed.
2020-06-08 13:13:41 +10:00
Augustin Fabre
647d9c762d
Declare function prototypes explicitly
This make it easier to manage separate compilation units (static functions and
global variables, local type definitions, etc.)

The generated header file `functions.h' caused a circular dependency problem;
it wasn't updated automatically when changes were made to the sources (e.g.
new function definition). The sources can't be in the dependency list of
`functions.h' in the Makefile, because `functions.h' is in the dependency list
of each source file. GNU make is able to ignore the circular dependency but not
BSD make.

At any rate, keeping the prototype list up-to-date is easy, because the
compiler will complain if a function is used in a compilation unit but defined
in an other one.

It also makes static analysis easier out of the box.
2020-06-08 13:10:06 +10:00
fosslinux
c1c7ffe721
Tabs->spaces borked userlist on most clients 2020-04-30 20:19:44 +10:00
fosslinux
4587014a86
Move LDFLAGS after -o 2020-04-30 13:54:46 +10:00
fosslinux
ca3b8a8ce4
Sort the ~ selector by date modified
When a gopherer comes in contact with a user listing, the current
order is pretty much useless (by UID). It makes much more sense
to sort by the date modified.

Closes #62
2020-04-28 15:46:49 +10:00
fosslinux
e2dc5d9337
Merge pull request #76 from augfab/cosmetics
Cosmetics
2020-04-23 22:02:14 +00:00