]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/log
coloredstderr/coloredstderr.git
10 years agotests: Also run tests in subshell with LD_PRELOAD set.
Simon Ruderich [Tue, 4 Jun 2013 23:06:10 +0000 (01:06 +0200)]
tests: Also run tests in subshell with LD_PRELOAD set.

10 years agotrackfds.h: Fix realloc() in update_environment().
Simon Ruderich [Tue, 4 Jun 2013 22:57:26 +0000 (00:57 +0200)]
trackfds.h: Fix realloc() in update_environment().

10 years agoImprove debug output.
Simon Ruderich [Tue, 4 Jun 2013 22:53:55 +0000 (00:53 +0200)]
Improve debug output.

10 years agotrackfds.h: Fix invalid write if tracked_fds_count is 0.
Simon Ruderich [Tue, 4 Jun 2013 01:34:19 +0000 (03:34 +0200)]
trackfds.h: Fix invalid write if tracked_fds_count is 0.

Also fixes missing initialization of env array.

10 years agoconfigure.ac: Don't require special versions of malloc/realloc.
Simon Ruderich [Mon, 3 Jun 2013 20:35:51 +0000 (22:35 +0200)]
configure.ac: Don't require special versions of malloc/realloc.

10 years agoconfigure.ac: Reorder macros to follow convention.
Simon Ruderich [Mon, 3 Jun 2013 20:18:16 +0000 (22:18 +0200)]
configure.ac: Reorder macros to follow convention.

10 years agoOnly hook vfork() if it's available.
Simon Ruderich [Mon, 3 Jun 2013 19:59:57 +0000 (21:59 +0200)]
Only hook vfork() if it's available.

10 years agodebug.h: Handle overflow in debug().
Simon Ruderich [Mon, 3 Jun 2013 02:32:12 +0000 (04:32 +0200)]
debug.h: Handle overflow in debug().

10 years agotrackfds.h: Handle overflow in update_environment().
Simon Ruderich [Mon, 3 Jun 2013 02:28:43 +0000 (04:28 +0200)]
trackfds.h: Handle overflow in update_environment().

10 years agotests: Use <STDERR< and >STDERR> as markers.
Simon Ruderich [Sun, 2 Jun 2013 21:41:31 +0000 (23:41 +0200)]
tests: Use <STDERR< and >STDERR> as markers.

Increases contrast to "stderr" output string.

10 years agotests: Use bash to get consistent test results.
Simon Ruderich [Sun, 2 Jun 2013 21:39:14 +0000 (23:39 +0200)]
tests: Use bash to get consistent test results.

10 years agoCOPYING: Add, GPL 3.
Simon Ruderich [Sun, 2 Jun 2013 16:40:39 +0000 (18:40 +0200)]
COPYING: Add, GPL 3.

10 years agoHook vfork() and replace it with fork().
Simon Ruderich [Sun, 2 Jun 2013 16:25:49 +0000 (18:25 +0200)]
Hook vfork() and replace it with fork().

10 years agohookmacros.h: Be more careful to restore the errno.
Simon Ruderich [Sat, 1 Jun 2013 20:47:23 +0000 (22:47 +0200)]
hookmacros.h: Be more careful to restore the errno.

check_handle_fd() or handle_fd_pre() might also modify it.

10 years agohookmacros.h: Reduce duplication in HOOK_VOID1().
Simon Ruderich [Sat, 1 Jun 2013 20:44:22 +0000 (22:44 +0200)]
hookmacros.h: Reduce duplication in HOOK_VOID1().

10 years agoHook perror(3).
Simon Ruderich [Sat, 1 Jun 2013 20:08:45 +0000 (22:08 +0200)]
Hook perror(3).

10 years agoconfigure.ac: Require libtool 2.4.
Simon Ruderich [Sat, 1 Jun 2013 19:55:10 +0000 (21:55 +0200)]
configure.ac: Require libtool 2.4.

10 years agoAdd simple test suite.
Simon Ruderich [Sat, 1 Jun 2013 19:51:28 +0000 (21:51 +0200)]
Add simple test suite.

10 years agoAdd ENV_NAME_FORCE_WRITE to force writes to non-tty devices.
Simon Ruderich [Sat, 1 Jun 2013 19:13:23 +0000 (21:13 +0200)]
Add ENV_NAME_FORCE_WRITE to force writes to non-tty devices.

10 years agoFix initialization if ENV_NAME_FDS was not set.
Simon Ruderich [Sat, 1 Jun 2013 16:27:56 +0000 (18:27 +0200)]
Fix initialization if ENV_NAME_FDS was not set.

If ENV_NAME_FDS is not set then init_from_environment() was called for
each hooked function, instead of just once.

10 years agoFix signature of fcntl() hook.
Simon Ruderich [Fri, 31 May 2013 20:31:11 +0000 (22:31 +0200)]
Fix signature of fcntl() hook.

10 years agoDisplay PID in tracked_fds_debug().
Simon Ruderich [Fri, 31 May 2013 16:40:49 +0000 (18:40 +0200)]
Display PID in tracked_fds_debug().

10 years agotrackfds.h: Add missing void to function definition.
Simon Ruderich [Fri, 31 May 2013 16:39:47 +0000 (18:39 +0200)]
trackfds.h: Add missing void to function definition.

10 years agofcntl(): Don't call dup_fd() if real_fcntl() failed.
Simon Ruderich [Fri, 31 May 2013 16:37:55 +0000 (18:37 +0200)]
fcntl(): Don't call dup_fd() if real_fcntl() failed.

10 years agoRename macros.h to hookmacros.h.
Simon Ruderich [Fri, 31 May 2013 16:36:21 +0000 (18:36 +0200)]
Rename macros.h to hookmacros.h.

10 years agoInitial commit.
Simon Ruderich [Fri, 31 May 2013 16:19:12 +0000 (18:19 +0200)]
Initial commit.