Source-Changes archive

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

Re: CVS commit: src/usr.bin/find



Hello,

At Sat,  7 Oct 2006 17:04:02 +0000 (UTC),
Alan Barrett wrote:
> 
> Module Name:  src
> Committed By: apb
> Date:         Sat Oct  7 17:04:02 UTC 2006
> 
> Modified Files:
>       src/usr.bin/find: extern.h find.c find.h function.c
> 
> Log Message:
> Add support for "find ... -exec ... {} +".
> 
> The code is from John Hawkinson in PR 20470.  I adapted it to current,
> and made some KNF and comment changes.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.24 -r1.25 src/usr.bin/find/extern.h
> cvs rdiff -r1.21 -r1.22 src/usr.bin/find/find.c src/usr.bin/find/find.h
> cvs rdiff -r1.55 -r1.56 src/usr.bin/find/function.c
> 

With this change, find(1) dumps core.

% find . -exec ls \{\} \;
zsh: 4082 segmentation fault (core dumped)  find . -exec ls \{\} \;
% ident /usr/bin/find
/usr/bin/find:
     $NetBSD: crt0.c,v 1.16 2006/05/17 17:08:54 christos Exp $
     $NetBSD: find.c,v 1.22 2006/10/07 17:04:02 apb Exp $
     $NetBSD: function.c,v 1.56 2006/10/07 17:04:02 apb Exp $
     $NetBSD: ls.c,v 1.18 2003/08/07 11:13:42 agc Exp $
     $NetBSD: main.c,v 1.24 2005/10/19 12:25:51 elad Exp $
     $NetBSD: misc.c,v 1.13 2006/08/26 18:17:42 christos Exp $
     $NetBSD: operator.c,v 1.8 2003/08/07 11:13:43 agc Exp $
     $NetBSD: option.c,v 1.23 2006/02/20 16:31:03 jschauma Exp $
     $NetBSD: stat_flags.c,v 1.19 2004/05/25 14:54:55 hannken Exp $

best regards.
-- 
 Kouichirou Hiratsuka
   hira%po6.nsk.ne.jp@localhost



Home | Main Index | Thread Index | Old Index