Bug 211024

Summary: ldd(1) man page example should avoid statically linked files
Product: Documentation Reporter: mike
Component: Books & ArticlesAssignee: Eitan Adler <eadler>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
suggested change to ldd(1) man page example none

Description mike 2016-07-12 02:45:37 UTC
Created attachment 172398 [details]
suggested change to ldd(1) man page example

An example in the ldd(1) man page lists the ELF binaries in the current directory which link against libc.so.6. The example works, but displays numerous "not a dynamic ELF executable" errors if run in, say, /usr/bin. The warnings could be avoided and the example could be improved by avoiding statically linked files. A simple patch is attached.
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-12-23 19:49:03 UTC
A commit references this bug:

Author: eadler
Date: Sat Dec 23 19:48:57 UTC 2017
New revision: 327116
URL: https://svnweb.freebsd.org/changeset/base/327116

Log:
  ldd: avoid statically linked executables in example

  The example works but spews warnings if run over a directory with
  statically linked binaries.

  PR:		211024
  Submitted by:	mike@skew.org

Changes:
  head/usr.bin/ldd/ldd.1
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-23 19:49:37 UTC
Committed. For the record we generally prefer unified diffs (diff -u).