bsdgrep: does anyone see this?

From: <poyopoyo_at_puripuri.plala.or.jp>
Date: Tue, 22 Nov 2011 16:59:23 +0900
Hi,

On the latest -CURRENT of r227785, I found bsdgrep acts differently
from GNU grep; bsdgrep -R exits at first unreadable directory.

==
$ bsdgrep -R ddb /etc/
/etc/defaults/rc.conf:ddb_enable="NO"           # Set to YES to load ddb scripts at boot.
/etc/defaults/rc.conf:ddb_config="/etc/ddb.conf"        # ddb(8) config file.
grep: /etc/bluetooth/hcsecd.conf: Permission denied
grep: /etc/ntp: Permission denied
==

==
$ gnugrep -R ddb /etc/
/etc/defaults/rc.conf:ddb_enable="NO"           # Set to YES to load ddb scripts at boot.
/etc/defaults/rc.conf:ddb_config="/etc/ddb.conf"        # ddb(8) config file.
gnugrep: /etc/bluetooth/hcsecd.conf: Permission denied
gnugrep: /etc/ntp: Permission denied
gnugrep: /etc/ppp/ppp.conf: Permission denied
/etc/rc.d/ddb:# $FreeBSD: head/etc/rc.d/ddb 208307 2010-05-19 19:03:19Z dougb $
/etc/rc.d/ddb:# PROVIDE: ddb
/etc/rc.d/ddb:name="ddb"
/etc/rc.d/ddb:start_precmd="ddb_prestart"
/etc/rc.d/ddb:ddb_prestart()
/etc/rc.d/ddb:  # Silently exit if ddb is not enabled
/etc/rc.d/ddb:  if [ -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
/etc/rc.d/ddb:required_files="${ddb_config}"
/etc/rc.d/ddb:command_args="${ddb_config}"
/etc/rc.d/initrandom:# REQUIRE: dumpon ddb
/etc/rc.d/savecore:# REQUIRE: dumpon ddb syslogd
gnugrep: /etc/security/audit_control: Permission denied
gnugrep: /etc/security/audit_user: Permission denied
gnugrep: /etc/security/audit_warn: Permission denied
gnugrep: /etc/ssh/ssh_host_key: Permission denied
gnugrep: /etc/ssh/ssh_host_dsa_key: Permission denied
gnugrep: /etc/ssh/ssh_host_rsa_key: Permission denied
gnugrep: /etc/ssh/ssh_host_ecdsa_key: Permission denied
/etc/ddb.conf:# $FreeBSD: src/etc/ddb.conf,v 1.1 2008/03/05 18:32:58 brooks Exp $
/etc/ddb.conf:#  ``ddb'' to define debugging scripts.
/etc/ddb.conf:# see ``man 4 ddb'' and ``man 8 ddb'' for details.
/etc/sysctl.conf:#debug.ddb.textdump.pending=1
gnugrep: /etc/namedb/s: Permission denied
gnugrep: /etc/namedb/rndc.key: Permission denied
gnugrep: warning: /etc/namedb/namedb: recursive directory loop
/etc/portsnap.conf:KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330
gnugrep: /etc/master.passwd: Permission denied
gnugrep: /etc/nsmb.conf: Permission denied
gnugrep: /etc/opieaccess: Permission denied
gnugrep: /etc/spwd.db: Permission denied
gnugrep: /etc/opiekeys: Permission denied
/etc/rc.conf.local:ddb_enable="YES"
gnugrep: /etc/malloc.conf: No such file or directory
==

-- 
kuro
Received on Tue Nov 22 2011 - 06:59:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:20 UTC