| Summary: | Extra cat(1) in example section of samba | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Pierre-Paul Lavoie <ppl> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Yep, you are right - this was indeed a useless use of 'cat'. I committed the first version of your patch. Thanks! |
Section "23.10.2.3 Security Settings" of the FreeBSD handbook. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-samba.html The example is # cat /etc/passwd | grep -v "^#" | make_smbpasswd > /usr/local/private/smbpasswd # chmod 600 /usr/local/private/smbpasswd The first command should be # grep -v "^#" /etc/passwd | make_smbpasswd > /usr/local/private/smbpasswd or # grep -v "^#" < /etc/passwd | make_smbpasswd > /usr/local/private/smbpasswd I would think that the former is better.