From a88920dd852273abd942e3bab2399e383180ca44 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Mon, 17 Dec 2012 00:42:00 +0100 Subject: Do not expand format name in posix format option This fixes hang of ps -o user * utils/ps.c (parse_opt): When POSIX_FMT is set, do not lookup format name from OUTPUT_FMTS. --- utils/ps.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') diff --git a/utils/ps.c b/utils/ps.c index 992b467d..2abb92aa 100644 --- a/utils/ps.c +++ b/utils/ps.c @@ -328,6 +328,8 @@ main(int argc, char *argv[]) /* Select an explicit format string if FMT_STRING is a format name. This is done here because parse_enum needs STATE. */ { + if (posix_fmt) + break; const char *fmt_name (unsigned n) { return -- cgit v1.2.3