Re: colorls in base

2019-02-16 Thread Timo Buhrmester
> To me it's the gloriously colorful that keep arguing that other people > argue "but it isn't pretty". Care to elaborate? > Prettiness is the last thing that concerns me, cloaking information with > gleeful colorized flashlights and blinding me

Re: colorls in base

2019-02-16 Thread Timo Buhrmester
> All I know is that some directories look like an "explosion in a > paint factory" or "angry fruit salad". I wonder why the die-hard monochrome users keep arguing from a "but it isn't pretty" point of view. It's not supposed to be pretty, it's supposed to augment the information presented. > The

Re: [patch] fixes for rc.d/postfix

2016-10-30 Thread Timo Buhrmester
Ping?

Re: Making syslog output pretty and smaller binaries

2016-10-10 Thread Timo Buhrmester
> The output isn't designed to be parsed any more than the output of > /etc/rc.d/samba restart is. IIRC the output of rc.d scripts is in fact supposed to be parsed by the postprocessing routines in rc.subr. > Would you say that both sending these informative messages to stdout is > a bug? Due to

Re: Making syslog output pretty and smaller binaries

2016-10-07 Thread Timo Buhrmester
> what is stdout actually for then. I guess the usual distinction is that stdout gets the "proper" output of a non-sink program (e.g. for ls(1) the actual directory listing, while diagnostic information (ls: foo: Permission denied) goes to stderr for the user to look at, and to not have it creep up

Re: Making syslog output pretty and smaller binaries

2016-10-06 Thread Timo Buhrmester
>LOG_POUT - output only the formattted message to stdout >if pri > LOG_ERR, otherwise stderr Writing diagnostics to stdout sounds very wrong, I wouldn't want any program to do that. What for?

[patch] fixes for rc.d/postfix

2016-08-20 Thread Timo Buhrmester
patch addresses both issues. Note that NetBSD 6's postconf does not support expansion, so if backported, the -x must be dropped. Cheers, Timo Buhrmester --- etc/rc.d/postfix.orig 2016-08-18 00:32:51.0 +0200 +++ etc/rc.d/postfix2016-08-18 00:32:41.0 +0200 @@ -44,9

Re: [patch] ftp(1) does not understand "Location"-headers with a relative reference

2016-05-27 Thread 'Timo Buhrmester'
On Fri, May 27, 2016 at 11:58:50AM -0400, Terry Moore wrote: > Malloc() might fail, and you don't check for that in your new path. Right, thanks. I meant to use ftp_malloc(), anyway. > And it's not clear to me how you know that there's a "//" at the strstr() I believe that the chain of events lea

[patch] ftp(1) does not understand "Location"-headers with a relative reference

2016-05-27 Thread Timo Buhrmester
The "Location"-Header in a HTTP Redirect used to require a full URL, but as of RFC 7231, relative references are also allowed. ftp(1) does not understand this; the following patch addresses that issue. Comments? diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index d5b13b6..32f0368 10064

Re: dlopen fails from static binary

2016-05-25 Thread Timo Buhrmester
> errno is for syscalls. errno is standard C, there are non-syscall library functions that do, and are required to, set errno, for example strtol(3) and friends. $ grep -rlFw errno /usr/share/man/man3 | wc -l 754 (Yes, some/most may set errno due to system calls failing, but certainly not all of

zgrep is broken + why is our grep GNU grep by default?

2016-05-12 Thread Timo Buhrmester
i.e. GNU grep. I'm wondering what's the deal with that...? I'm inclined to build my systems with MKBSDGREP=yes from now on, or is there a good reason not to? Timo Buhrmester

gprof segfaults in mcount

2016-04-24 Thread Timo Buhrmester
I can no longer profile programs with gprof on i386, NetBSD 7.99.26. The test case is a hello world program: | #include | | int | main(void) | { | puts("hello world"); | return 0; | } which is compiled using cc -g -pg -o helloworld helloworld.c Here's what happens: $ gdb ./hellowor

Re: Patch: rfcomm_sppd + openpty

2016-03-28 Thread Timo Buhrmester
> What is your use case for this? (It has been a year since I wrote the patch so my memory is a bit foggy.) I'm using rfcomm_sppd to establish a bluetooth connection to a GPS receiver, which is then used by gpsd. Now, the problem was that I couldn't a-priori find an unused /dev/ttyp? device to be

Patch: rfcomm_sppd + openpty

2016-03-28 Thread Timo Buhrmester
I've been running the below patch for about a year, which makes rfcomm_sppd (bluetooth-related) optionally use openpty(3) when the argument to -t is "auto". I'm neither sure this is the right way to do it, nor that support for manually specifying a tty is still needed at all. Anyway I figured I t

Re: cp -i might violate POSIX

2016-03-04 Thread Timo Buhrmester
On Sat, Mar 05, 2016 at 03:03:36AM +0100, Dmitrij D. Czarkoff wrote: > So the goal of the diff is to replace something like > > $ for src in ${files}; do [ -r "$src" ] && cp ${src} dst/; done > > with > > $ yes n | cp -i ${files} dst/ > > ? Or alternatively, to state in the manual that -i w

Re: cp -i might violate POSIX

2016-03-04 Thread Timo Buhrmester
On Sat, Mar 05, 2016 at 02:39:41AM +0100, Dmitrij D. Czarkoff wrote: > > This breaks doing something along the lines of ``yes n | cp -i [...]'' > > Why would anyone want that? To simulate what in FreeBSD's and GNU's implementation of cp is the -n option, i.e. to only copy files that don't already

cp -i might violate POSIX

2016-03-04 Thread Timo Buhrmester
t use of -i is a request for > interaction, so when the destination path exists, the utility takes > instructions from whatever responds on standard input. ..which I believe conflicts with what our cp's -i does. At the bottom of this mail is a patch that drops the ``isatty()''. Che

Re: Next steps for /bin/sh

2016-02-28 Thread Timo Buhrmester
> IMO, in the presence of -e, "false && false" should terminate > execution, just as "false && true" should. The entire compound > statement is false because the first one is. 2013 POSIX says: The -e setting shall be ignored when executing [...] any command of an AND-OR list other than the last.