chiark / gitweb /
preload-hacks
12 years agonoip.c: Shut up some GCC warnings.
Mark Wooding [Tue, 13 Mar 2012 21:28:39 +0000 (21:28 +0000)]
noip.c: Shut up some GCC warnings.

I have no idea what fixup_p was meant to mean, but it's gone now.

12 years agowithlib.in: Fix bashism (`export VAR=VALUE'). 1.0.7
Mark Wooding [Fri, 10 Jun 2011 20:00:07 +0000 (21:00 +0100)]
withlib.in: Fix bashism (`export VAR=VALUE').

For some reason, under `dash', this causes (say) `noip' to work
correctly for exactly one level of nesting.  An attempt to invoke a
nested `noip' results in

export: 4: noip.so: bad variable name

This appears to be a result of `dash' doing word splitting too early.

13 years agoRelease 1.0.6. 1.0.6
Mark Wooding [Mon, 14 Jun 2010 00:27:44 +0000 (01:27 +0100)]
Release 1.0.6.

13 years agonoip.c: Remove hints that we might intercept close(2).
Mark Wooding [Sat, 5 Jun 2010 13:45:58 +0000 (14:45 +0100)]
noip.c: Remove hints that we might intercept close(2).

We don't because glibc makes it too hard.

13 years agonoip.c: Make sure it's an AF_UNIX address before counting the length.
Mark Wooding [Sat, 5 Jun 2010 13:45:01 +0000 (14:45 +0100)]
noip.c: Make sure it's an AF_UNIX address before counting the length.

13 years agoMakefile: Cardboard cutout silent rules build.
Mark Wooding [Sat, 5 Jun 2010 10:53:59 +0000 (11:53 +0100)]
Makefile: Cardboard cutout silent rules build.

13 years agonoip.c: Silence GCC warnings about unused return values.
Mark Wooding [Sat, 5 Jun 2010 10:53:37 +0000 (11:53 +0100)]
noip.c: Silence GCC warnings about unused return values.

Actually act on errors from fgets while skipping the header on
/proc/net/unix, even though it's unlikely to be bad and we'll fail
later anyway.  The write in printerr is not worth worrying about.

13 years agonoip.c: Boring whitespace fixes.
Mark Wooding [Sat, 5 Jun 2010 10:52:11 +0000 (11:52 +0100)]
noip.c: Boring whitespace fixes.

14 years agoRelease 1.0.5. 1.0.5
Mark Wooding [Sat, 26 Dec 2009 12:17:10 +0000 (12:17 +0000)]
Release 1.0.5.

14 years agoMerge branch 'master' of metalzone:public-git/preload-hacks
Mark Wooding [Sat, 26 Dec 2009 12:16:09 +0000 (12:16 +0000)]
Merge branch 'master' of metalzone:public-git/preload-hacks

* 'master' of metalzone:public-git/preload-hacks:
  Version 1.0.4.
  noip (decode_inet_addr): Be more careful when converting addresses.
  noip: Don't try to support families other than AF_UNIX and AF_INET.

14 years agonoip.c: Only fiddle with `errno' from `connect' if we faked things.
Mark Wooding [Sat, 26 Dec 2009 12:15:34 +0000 (12:15 +0000)]
noip.c: Only fiddle with `errno' from `connect' if we faked things.

Otherwise some programs get confused.

14 years agoREADME: Add some more notes about how useful `noip' is.
Mark Wooding [Sat, 26 Dec 2009 12:15:11 +0000 (12:15 +0000)]
README: Add some more notes about how useful `noip' is.

15 years agoVersion 1.0.4. 1.0.4
Mark Wooding [Mon, 12 Jan 2009 17:57:54 +0000 (17:57 +0000)]
Version 1.0.4.

15 years agonoip (decode_inet_addr): Be more careful when converting addresses.
Mark Wooding [Mon, 12 Jan 2009 17:53:35 +0000 (17:53 +0000)]
noip (decode_inet_addr): Be more careful when converting addresses.

The old version of decode_inet_addr would convert empty Unix-domain
addresses to wildcard Internet addresses, which is erroneous in a number
of situations.  In particular, this causes problems in some servers
which maintain parallel Unix-domain and Internet listening sockets, and
use the address family reported by accept(2) to decide what to do: if
the incoming connection is from an unbound (but real) Unix-domain
socket, it gets misinterpreted.

This fixes decode_inet_addr to be more selective about its decoding of
empty addresses.  It must do the decoding when swapping in a genuine IP
socket, but when called via return_fake_name it's wrong to do this: a
remote socket which ought to be decoded will have been bound either
explicitly by the peer or implicitly by do_implicit_bind.  (Actually,
getsockname might now be wrong when called on an unbound socket, but
that's probably a small price to pay -- and there's no way of returning
the right answer in this case anyway.)

15 years agonoip: Don't try to support families other than AF_UNIX and AF_INET.
Mark Wooding [Mon, 12 Jan 2009 17:21:58 +0000 (17:21 +0000)]
noip: Don't try to support families other than AF_UNIX and AF_INET.

If there's demand, I might try to hack in IPv6 later.  But not now.

15 years agoVersion 1.0.3. 1.0.3
Mark Wooding [Mon, 22 Dec 2008 01:24:48 +0000 (01:24 +0000)]
Version 1.0.3.

15 years agodebian: Add lintian-overrides.
Mark Wooding [Mon, 22 Dec 2008 01:23:12 +0000 (01:23 +0000)]
debian: Add lintian-overrides.

The libraries we ship aren't for linking against, so they don't need
sonames.

15 years agonoip.c, uopen.c: Add commentary and GPL notices.
Mark Wooding [Mon, 22 Dec 2008 01:23:12 +0000 (01:23 +0000)]
noip.c, uopen.c: Add commentary and GPL notices.

This makes the whole package look much more palatable.

15 years agoMakefile: Spruce up considerably.
Mark Wooding [Mon, 22 Dec 2008 01:23:10 +0000 (01:23 +0000)]
Makefile: Spruce up considerably.

It's now more maintainable, and much easier to read.

15 years agouopen.1: Reports wrong section in .TH line.
Mark Wooding [Sun, 21 Dec 2008 22:20:55 +0000 (22:20 +0000)]
uopen.1: Reports wrong section in .TH line.

Spotted by lintian.

15 years agoDebian 1.0.2. 1.0.2
Mark Wooding [Sun, 21 Dec 2008 20:31:41 +0000 (20:31 +0000)]
Debian 1.0.2.

15 years agoBuild: Use auto-version to discover the version number.
Mark Wooding [Sun, 21 Dec 2008 20:30:27 +0000 (20:30 +0000)]
Build: Use auto-version to discover the version number.

15 years agoREADME: Provide a handy overview and tutorial.
Mark Wooding [Sun, 21 Dec 2008 20:28:01 +0000 (20:28 +0000)]
README: Provide a handy overview and tutorial.

It could probably do with building instructions and stuff.

15 years agodebian: Switch to CDBS.
Mark Wooding [Sun, 21 Dec 2008 19:35:33 +0000 (19:35 +0000)]
debian: Switch to CDBS.

This involves hacking the Makefile a little to separate CFLAGS and
LDFLAGS into things the Debian build system can mess with and things
which will screw the build.

It also involves messing with the debian/*.install files in obvious
ways.  And the build leaves a bunch of cruft which needs ignoring.

15 years agonoip: Fix error reporting. 1.0.1
Mark Wooding [Thu, 15 May 2008 18:53:09 +0000 (19:53 +0100)]
noip: Fix error reporting.

Previously, noip would report a connection failure to an unbound socket
as ENOENT (no such file or directory).  This confuses Sage (among
others, probably) which expect ECONNREFUSED.

Bump the version to 1.0.1 as a result.

15 years agoFix trailing whitespace.
Mark Wooding [Wed, 14 May 2008 07:50:26 +0000 (08:50 +0100)]
Fix trailing whitespace.

18 years agonoip: Fix ACL parsing bug in port ranges.
Mark Wooding [Wed, 1 Mar 2006 00:36:31 +0000 (00:36 +0000)]
noip: Fix ACL parsing bug in port ranges.

The code failed to skip past the `-' separating the parts of the port
range, so the max port always got forced to zero.  Less than useful,
really.

18 years agomanual: Various tweaks.
Mark Wooding [Wed, 8 Feb 2006 20:04:32 +0000 (20:04 +0000)]
manual: Various tweaks.

  * Fix author email addresses.

  * Fix terrible wording mistake in noip manual, and correct the DNS
    port number (presumably typoed).

Also sneak COPYING into the .gitignore file.

18 years agoinfra: Add a copy of the GPL.
Mark Wooding [Wed, 8 Feb 2006 18:56:13 +0000 (18:56 +0000)]
infra: Add a copy of the GPL.

18 years agoExtract Subversion ignore data.
Mark Wooding [Mon, 6 Feb 2006 19:10:39 +0000 (19:10 +0000)]
Extract Subversion ignore data.

18 years agodebian: Fix maintainer address.
mdw [Mon, 6 Feb 2006 19:10:15 +0000 (19:10 +0000)]
debian: Fix maintainer address.

18 years agoManual fix. 1.0.0
mdw [Mon, 23 May 2005 17:17:29 +0000 (17:17 +0000)]
Manual fix.

18 years agoVarious bug fixes.
mdw [Mon, 23 May 2005 10:49:04 +0000 (10:49 +0000)]
Various bug fixes.

18 years agoCheck the proposed socket directory before trusting its contents.
mdw [Fri, 6 May 2005 20:31:51 +0000 (20:31 +0000)]
Check the proposed socket directory before trusting its contents.

18 years agoAllow user control over autobinding. Also try ports at random to start
mdw [Fri, 6 May 2005 15:02:59 +0000 (15:02 +0000)]
Allow user control over autobinding.  Also try ports at random to start
off with, falling back to linear search.

18 years agonoip: set ACLs from environment variables.
mdw [Fri, 6 May 2005 14:25:06 +0000 (14:25 +0000)]
noip: set ACLs from environment variables.

18 years agoDebianize.
mdw [Fri, 6 May 2005 09:56:28 +0000 (09:56 +0000)]
Debianize.

18 years agoIt seems to work!
mdw [Thu, 5 May 2005 23:32:05 +0000 (23:32 +0000)]
It seems to work!

18 years agoNew project.
mdw [Thu, 5 May 2005 23:30:55 +0000 (23:30 +0000)]
New project.