NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/42237 CVS commit: [netbsd-5] src/usr.bin/less/less



The following reply was made to PR misc/42237; it has been noted by GNATS.

From: Soren Jacobsen <snj%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/42237 CVS commit: [netbsd-5] src/usr.bin/less/less
Date: Fri, 18 Dec 2009 06:06:56 +0000

 Module Name:   src
 Committed By:  snj
 Date:          Fri Dec 18 06:06:56 UTC 2009
 
 Modified Files:
        src/usr.bin/less/less [netbsd-5]: cmdbuf.c
 
 Log Message:
 Pull up following revision(s) (requested by dholland in ticket #1194):
        usr.bin/less/less/cmdbuf.c: revision 1.8
 Don't attempt to read or write ~/.lesshst if it's not a regular file
 or a symlink to a regular file. Previously, symlinking to /dev/null
 would cause less to trash /dev/null if run with sufficient privileges,
 as seen in PR misc/42237.
 While the official way to disable .lesshst is to set an environment
 variable, that is problematic in some cases, such as single-user mode.
 A safer way to prevent even an unpatched less from writing anything
 out is to mkdir ~/.lesshst.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.7.24.1 src/usr.bin/less/less/cmdbuf.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index