diff options
author | gavin <gavin@FreeBSD.org> | 2010-01-17 11:10:24 +0000 |
---|---|---|
committer | gavin <gavin@FreeBSD.org> | 2010-01-17 11:10:24 +0000 |
commit | a18c44a1c84134a0cf33184bc81035c880d3832d (patch) | |
tree | edb0863b55af41c842b7771189ca26fc97531eba /etc | |
parent | 0bd93a7ab7f1c476a1595df7f5e32849c93a0bd6 (diff) | |
download | FreeBSD-src-a18c44a1c84134a0cf33184bc81035c880d3832d.zip FreeBSD-src-a18c44a1c84134a0cf33184bc81035c880d3832d.tar.gz |
Merge r201440, r201445 from head:
Don't complain when we encounter the "cache" source, it's valid. Also fix
the error message to include a line feed and not include a stray comma.
Submitted by: Artis Caune artis.caune gmail.com
While here, change "> /dev/stderr" for more usual ">&2"
Submitted by: jilles
PR: bin/121671
Approved by: ed (mentor, implicit)
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/nsswitch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/nsswitch b/etc/rc.d/nsswitch index 1540583..8b0b228 100755 --- a/etc/rc.d/nsswitch +++ b/etc/rc.d/nsswitch @@ -77,10 +77,10 @@ generate_host_conf() nis) echo "nis" >> $host_conf ;; - *=*) + cache | *=*) ;; *) - printf "Warning: unrecognized source [%s]", $_s > "/dev/stderr" + printf "Warning: unrecognized source [%s]\n" $_s >&2 ;; esac done |