Subject: Re: cp copying perms of setuid source without -p: is this a bug?
To: None <tech-userlevel@netbsd.org>
From: Jed Davis <jdev@panix.com>
List: tech-userlevel
Date: 05/10/2005 22:55:55
In article <ldo6l2-vkk.ln1@morgoth.gw.com>,
Christos Zoulas <christos@tac.gw.com> wrote:
> In article <d5pbcv$8tv$1@sea.gmane.org>, Jed Davis <jdev@panix.com> wrote:
[]
> >  hostname# ls -l /dev/null                       
> >  crw-rw-rw-  1 root  wheel  2, 2 May  9 18:33 /dev/null
> >  hostname# cp /usr/libexec/ssh-keysign /dev/null
> >  hostname# ls -l /dev/null                      
> >  cr-sr-xr-x  1 root  wheel  2, 2 May  9 23:25 /dev/null
[]
> Please send-pr.

Done; it's bin/30188.

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))