Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2017 07:17:41 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r321975 - stable/11/usr.bin/w
Message-ID:  <201708030717.v737HfxK085754@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Aug  3 07:17:41 2017
New Revision: 321975
URL: https://svnweb.freebsd.org/changeset/base/321975

Log:
  MFC r321620: Fix singular/plural "users" output.
  
  It was broken during libxo'fication.
  
  PR:		221039
  Submitted by:	timur@

Modified:
  stable/11/usr.bin/w/w.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/w/w.c
==============================================================================
--- stable/11/usr.bin/w/w.c	Thu Aug  3 07:00:55 2017	(r321974)
+++ stable/11/usr.bin/w/w.c	Thu Aug  3 07:17:41 2017	(r321975)
@@ -511,7 +511,7 @@ pr_header(time_t *nowp, int nusers)
 	}
 
 	/* Print number of users logged in to system */
-	xo_emit(" {:users/%d} {N:user%s}", nusers, nusers == 1 ? "" : "s");
+	xo_emit(" {:users/%d} {Np:user,users}", nusers);
 
 	/*
 	 * Print 1, 5, and 15 minute load averages.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708030717.v737HfxK085754>