svn commit: r343248 - stable/12/usr.bin/cmp

Mark Johnston markj at FreeBSD.org
Mon Jan 21 04:10:47 UTC 2019


Author: markj
Date: Mon Jan 21 04:10:45 2019
New Revision: 343248
URL: https://svnweb.freebsd.org/changeset/base/343248

Log:
  Properly commit the revert of r343205.
  
  MFCing the head revert isn't the same as reverting the MFC.
  
  This is a direct commit to stable/12.

Modified:
  stable/12/usr.bin/cmp/cmp.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.bin/cmp/cmp.c
==============================================================================
--- stable/12/usr.bin/cmp/cmp.c	Mon Jan 21 03:57:49 2019	(r343247)
+++ stable/12/usr.bin/cmp/cmp.c	Mon Jan 21 04:10:45 2019	(r343248)
@@ -177,7 +177,8 @@ main(int argc, char *argv[])
 
 	if (!special) {
 		cap_rights_init(&rights);
-		if (caph_rights_limit(STDIN_FILENO, &rights) < 0) {
+		if (cap_rights_limit(STDIN_FILENO, &rights) < 0 &&
+		    errno != ENOSYS) {
 			err(ERR_EXIT, "unable to limit stdio");
 		}
 	}


More information about the svn-src-all mailing list