top: Fix -Sc option combination (bug #2670)
authorJohn Marino <draco@marino.st>
Wed, 28 May 2014 16:26:52 +0000 (18:26 +0200)
committerJohn Marino <draco@marino.st>
Wed, 28 May 2014 18:51:51 +0000 (20:51 +0200)
commit826597b58e4d70a51d4d17e21e7a797cda77666a
treeb608c4469dc976bdff301d2f8793cb722e619929
parent2513f15e538945986e9817bb648eee2cb9b09494
top: Fix -Sc option combination (bug #2670)

It was reported that the "top -S" and "top -c" commands work as expected
but "top -Sc" showed repeated lines.  I confirmed a malfunction, but a
different one: all 20 lines showing in console were the same.

The following patch will revert to standard format if a system command is
detected, otherwise the desired "full command" option is shown.

< http://bugs.dragonflybsd.org/issues/2670 >
usr.bin/top/m_dragonfly.c