Simon Ruderich
f78c0377c1
Prevent crash in execve() if env is NULL
2018-02-01 21:40:02 +01:00
Simon Ruderich
545c6af1da
Update copyright year
2018-02-01 21:10:46 +01:00
Simon Ruderich
8a65b4486f
update copyright year
2015-08-28 12:25:36 +02:00
Simon Ruderich
3676d3f21f
vfork(): fix incorrect comment
2014-11-15 18:35:05 +01:00
Simon Ruderich
3e894f0f32
NEWS: improve 0.2 notes
2014-06-22 18:54:45 +02:00
Simon Ruderich
502f26377e
NEWS: release 0.2
2014-06-22 18:34:34 +02:00
Simon Ruderich
733e149c1a
fix typos in comments
2014-06-22 18:24:49 +02:00
Simon Ruderich
b52ae7942b
m4: Update to autoconf-archive 2014-02-28.
...
No changes.
2014-05-20 17:49:33 +02:00
Simon Ruderich
c1c5dcf0ca
README: add multi-lib instructions
2014-05-17 21:52:53 +02:00
Simon Ruderich
bcac94e353
configure.ac: fix typo in TLS error message
2014-05-16 04:50:06 +02:00
Simon Ruderich
24ead2ee7f
configure.ac: warn if TLS is not available
2014-05-13 18:32:56 +02:00
Simon Ruderich
b6d1dc09b6
handle_recursive: fix race condition if threads are used
...
Requires thread-local storage.
Another solution would be a mutex, but this is slower and more
complicated and might cause issues with some programs.
2014-04-08 14:38:01 +02:00
Simon Ruderich
93bd149d9f
tests/test_environment.sh: echo test part to simplify debugging
2014-03-14 17:05:43 +01:00
Simon Ruderich
5c0b209f23
README: mention autoreconf -fsi when using the git version
2014-03-14 16:10:58 +01:00
Simon Ruderich
97322d9278
m4: Update to autoconf-archive 2013-11-01.
...
No changes.
2014-02-01 17:57:46 +01:00
Simon Ruderich
def64ef651
README: /proc/self/exe is required for _IGNORED_BINARIES.
2014-01-02 15:20:43 +01:00
Simon Ruderich
f54cd101d7
Update copyright year.
2014-01-01 16:41:01 +01:00
Simon Ruderich
39d313d1d4
Fix error_at_line() not always exiting if status != 0.
...
Also add tests.
2014-01-01 16:37:48 +01:00
Simon Ruderich
ba93304c54
README: Minor improvements.
2013-12-09 21:44:06 +01:00
Simon Ruderich
700b7084bb
m4/README: Add.
2013-12-09 21:43:42 +01:00
Simon Ruderich
fa6176934c
.gitignore: Sort.
2013-12-09 21:43:28 +01:00
Simon Ruderich
8793959e82
README: Update.
2013-12-04 01:51:02 +01:00
Simon Ruderich
f9631cb6fa
NEWS: Add. Release 0.1.
2013-12-04 00:48:03 +01:00
Simon Ruderich
ac9101941e
Add likely() to tracked_fds_find().
2013-09-15 00:15:50 +02:00
Simon Ruderich
73a6c78e7b
Remove unnecessary check in handle_*_pre().
...
init_pre_post_string() sets both pre_string and post_string, so checking
only one suffices.
2013-09-15 00:10:45 +02:00
Simon Ruderich
f0803b0545
README: Fix minor typos.
2013-09-15 00:10:15 +02:00
Simon Ruderich
291a143267
Remove unnecessary if in init_from_environment().
2013-07-21 14:25:54 +02:00
Simon Ruderich
08e7324497
constants.h: Fix indentation.
2013-07-07 14:43:29 +02:00
Simon Ruderich
1cc7709bec
README: Add another known issue.
2013-07-07 14:42:37 +02:00
Simon Ruderich
6861a8c6b0
README: Some fixes.
2013-07-07 14:42:23 +02:00
Simon Ruderich
b950cdb792
Add COLORED_STDERR_IGNORED_BINARIES to exclude binaries.
2013-07-07 13:33:44 +02:00
Simon Ruderich
9ff0ffbd28
Add missing assert() to init_from_environment().
2013-07-07 12:54:59 +02:00
Simon Ruderich
ca826de83a
tests/test_noforce.sh: Add missing test_script_subshell call.
2013-07-01 13:58:24 +02:00
Simon Ruderich
f48f822438
README: Document failing test on FreeBSD.
2013-07-01 03:27:16 +02:00
Simon Ruderich
2241f5278e
Handle recursive calls of handle_*_{pre,post}() functions.
2013-07-01 03:23:50 +02:00
Simon Ruderich
abd557a42f
tests: Handle sed which append a trailing newline.
2013-07-01 03:20:38 +02:00
Simon Ruderich
b926752fac
tests: Don't require bash.
...
Instead merge continuous regions of colored output. This way different
shell implementations shouldn't make a difference.
2013-07-01 03:12:24 +02:00
Simon Ruderich
2c55827f6f
tests/example_exec.c: Sort environment variables.
2013-07-01 02:35:11 +02:00
Simon Ruderich
d49cd5d92a
Also hook un-macroed putc when it's a macro.
...
The macro might define it to something else, but the non-macro version
is also used in some cases, e.g. in gcc 4.8's collect2 on Debian with
eglibc 2.17-7.
2013-06-30 22:14:33 +02:00
Simon Ruderich
afa1ef98fe
Restore environment for execvpe() if the exec fails.
2013-06-29 23:24:04 +02:00
Simon Ruderich
436c2f894c
README: Minor improvements.
2013-06-29 23:24:03 +02:00
Simon Ruderich
d08a512806
Set DEFAULT_PRE_STRING to red.
...
Bright red doesn't work in GNU/Linux's console.
2013-06-29 23:24:03 +02:00
Simon Ruderich
a685b825aa
tests: Add example_stdio.c and test_stdio.sh.
2013-06-22 18:21:10 +02:00
Simon Ruderich
e3234d6c08
tests/Makefile.am: Fix for BSD's make.
2013-06-22 00:43:48 +02:00
Simon Ruderich
2fc66e15eb
Improve checks for invalid file descriptors.
...
Just in case a real dup*() or fcntl() doesn't return -1 on error, but
something like -2.
2013-06-21 23:03:12 +02:00
Simon Ruderich
219a9882ba
tests: Check return values of write() and dup2().
2013-06-21 23:03:12 +02:00
Simon Ruderich
0d7f306898
Overwrite tracked file descriptors when exporting COLORED_STDERR_FDS.
...
If the list of tracked file descriptors is modified to contain unwanted
values (e.g. when a parent process closes or redirects stderr), this
makes it possible to set the tracked file descriptors back to a given
list.
This problem occurred with startx which somehow closes or redirects
stderr. As COLORED_STDERR_FDS was set in the shell running startx, this
disabled coloring stderr for all processes started in the X11 session.
This is no longer an issue. As COLORED_STDERR_FDS is set in the shell
configuration file, it automatically sets the list to the correct value
when a shell is opened in the terminal emulator once X11 is running.
2013-06-21 23:03:12 +02:00
Simon Ruderich
045ca46e79
Hook __swbuf() on FreeBSD.
...
Coloring works fine now on FreeBSD (with some minor issues). Tests still
fail though.
2013-06-20 23:33:27 +02:00
Simon Ruderich
ba2283bd37
Remove invalid assert() in tracked_fds_find().
2013-06-20 23:17:03 +02:00
Simon Ruderich
f3c734eb7d
configure.ac: Check if __overflow() is available.
2013-06-20 22:14:42 +02:00