From owner-svn-src-all@FreeBSD.ORG Thu Aug 12 19:43:40 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56AEA10656B0; Thu, 12 Aug 2010 19:43:40 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 45E318FC0A; Thu, 12 Aug 2010 19:43:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7CJhenw076084; Thu, 12 Aug 2010 19:43:40 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7CJheH4076082; Thu, 12 Aug 2010 19:43:40 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201008121943.o7CJheH4076082@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Thu, 12 Aug 2010 19:43:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211234 - head/tools/regression/fstest/tests/unlink X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2010 19:43:40 -0000 Author: pjd Date: Thu Aug 12 19:43:40 2010 New Revision: 211234 URL: http://svn.freebsd.org/changeset/base/211234 Log: Fix copy&pasted code - we want to create character device here. Modified: head/tools/regression/fstest/tests/unlink/11.t Modified: head/tools/regression/fstest/tests/unlink/11.t ============================================================================== --- head/tools/regression/fstest/tests/unlink/11.t Thu Aug 12 19:40:49 2010 (r211233) +++ head/tools/regression/fstest/tests/unlink/11.t Thu Aug 12 19:43:40 2010 (r211234) @@ -67,19 +67,19 @@ expect "EACCES|EPERM" -u 65533 -g 65533 expect 0 unlink ${n0}/${n1} # User owns both: the sticky directory and the character device to be removed. -expect 0 mknod ${n0}/${n1} b 0644 1 2 +expect 0 mknod ${n0}/${n1} c 0644 1 2 expect 0 chown ${n0}/${n1} 65534 65534 expect 0 -u 65534 -g 65534 unlink ${n0}/${n1} # User owns the character device to be removed, but doesn't own the sticky directory. -expect 0 mknod ${n0}/${n1} b 0644 1 2 +expect 0 mknod ${n0}/${n1} c 0644 1 2 expect 0 chown ${n0}/${n1} 65533 65533 expect 0 -u 65533 -g 65533 unlink ${n0}/${n1} # User owns the sticky directory, but doesn't own the character device to be removed. -expect 0 mknod ${n0}/${n1} b 0644 1 2 +expect 0 mknod ${n0}/${n1} c 0644 1 2 expect 0 chown ${n0}/${n1} 65533 65533 expect 0 -u 65534 -g 65534 unlink ${n0}/${n1} # User doesn't own the sticky directory nor the character directory to be removed. -expect 0 mknod ${n0}/${n1} b 0644 1 2 +expect 0 mknod ${n0}/${n1} c 0644 1 2 expect 0 chown ${n0}/${n1} 65534 65534 expect "EACCES|EPERM" -u 65533 -g 65533 unlink ${n0}/${n1} expect 0 unlink ${n0}/${n1}