Oh nice! This is much much better : ). I guess next time I'll try to
get a hold of you first to discuss what I'm trying to do so I can make
a good patch that doesn't make you do all the work! I'm also starting
to learn some C++ and had some initial success making small tweaks and
stuff - will let you know when I get something useful going with it.
Anyway, thanks a ton for this patch, this is very convenient. It's
also much more POSIX compatible than my hard coded little flag
was ; ).
-- Felix Geisendörfer aka the_undefined