[patch] less: filename globbing/expansion

2010-03-27 Thread Matthew Haub
Hello, less(1) fails to write its buffer to pathnames with environment variables or the tilda home directory shortcut in them. The following patch corrects this by using the shell to glob filenames with lessecho instead of glob(3). Reproduction instructions: $ echo hi | less hi [type "s~/newfile.

Re: fdisk(8) man page diff

2010-03-27 Thread Jason McIntyre
On Thu, Mar 25, 2010 at 09:05:01PM -0400, Anders Langworthy wrote: > > Here is an updated diff with that in mind: > > Index: fdisk.8 > === a slightly tweaked version of this just committed. thanks for the mail. jmc

[patch] ssh: null pointer dereference

2010-03-27 Thread Matthew Haub
Hello, If channel_by_id() in mux_master_control_cleanup_cb() fails to find the session channel then pointer "sc" will be NULL when dereferenced. Index: usr.bin/ssh/mux.c === RCS file: /cvs/src/usr.bin/ssh/mux.c,v retrieving revision

Re: ksh man diff (mknod)

2010-03-27 Thread Jason McIntyre
On Fri, Mar 26, 2010 at 08:49:32PM +0100, LEVAI Daniel wrote: > Hi! > > > I've noticed that ksh's man page mentions mknod's b(lock) and c(har) > device parameters as optional, but they are mandatory. Does the following > diff make sense?: > > --- ksh.1.old 2010-02-26 18:54:15.0 +0100 > +

convert usbhidaction(1) from system(3) to fork+exec

2010-03-27 Thread Vadim Zhukov
Hello all. Today I found that when I start some program asynchronously ("prog &") from usbhidaction(1) and then usbhidaction(1) terminates, then "prog" terminates too. This is caused by the fact usbhidaction(1) uses system(3). I changed the logic to do fork+setpgid+exec dance, and now things w