Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2020 06:43:48 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r366925 - user/pho/stress2/misc
Message-ID:  <202010220643.09M6hm2p039582@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Thu Oct 22 06:43:48 2020
New Revision: 366925
URL: https://svnweb.freebsd.org/changeset/base/366925

Log:
  Update test to reflect change in r366549.

Modified:
  user/pho/stress2/misc/beneath2.sh

Modified: user/pho/stress2/misc/beneath2.sh
==============================================================================
--- user/pho/stress2/misc/beneath2.sh	Thu Oct 22 05:07:25 2020	(r366924)
+++ user/pho/stress2/misc/beneath2.sh	Thu Oct 22 06:43:48 2020	(r366925)
@@ -61,6 +61,7 @@ cd $mntpoint
 ln -s /tmp/justalongname symlink
 $dir/beneath2 symlink
 s=$?
+echo "Exit code is $s"
 [ -f beneath2.core -a $s -eq 0 ] &&
     { ls -l beneath2.core; mv beneath2.core $dir; s=1; }
 cd $odir
@@ -95,7 +96,8 @@ main(int argc, char *argv[])
 		exit(1);
 	}
 	file = argv[1];
-	if ((fd = open(file, O_RDONLY | O_BENEATH)) != 0 && errno != ENOENT)
+	if ((fd = open(file, O_RDONLY | O_BENEATH)) != 0 &&
+	    errno != ENOTCAPABLE)
 		err(1, "open(%s)", file);
 
 	return (0);



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