From owner-svn-src-stable-9@FreeBSD.ORG Thu Oct 4 08:52:08 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F015010656AE; Thu, 4 Oct 2012 08:52:08 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8FEE38FCD4; Thu, 4 Oct 2012 08:33:46 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q948XkuZ007051; Thu, 4 Oct 2012 08:33:46 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q948XkNw007049; Thu, 4 Oct 2012 08:33:46 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <201210040833.q948XkNw007049@svn.freebsd.org> From: Edward Tomasz Napierala Date: Thu, 4 Oct 2012 08:33:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r241185 - stable/9/bin/setfacl X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2012 08:52:09 -0000 Author: trasz Date: Thu Oct 4 08:33:46 2012 New Revision: 241185 URL: http://svn.freebsd.org/changeset/base/241185 Log: MFC r240084: Make "setfacl -bd" an alias for "setfacl -k". Previously it would crash on assert. PR: bin/165807 Modified: stable/9/bin/setfacl/setfacl.c Directory Properties: stable/9/bin/setfacl/ (props changed) Modified: stable/9/bin/setfacl/setfacl.c ============================================================================== --- stable/9/bin/setfacl/setfacl.c Thu Oct 4 08:26:49 2012 (r241184) +++ stable/9/bin/setfacl/setfacl.c Thu Oct 4 08:33:46 2012 (r241185) @@ -264,6 +264,17 @@ main(int argc, char *argv[]) need_mask = 1; break; case OP_REMOVE_EXT: + /* + * Don't try to call remove_ext() for empty + * default ACL. + */ + if (acl_type == ACL_TYPE_DEFAULT && + acl_get_entry(acl, ACL_FIRST_ENTRY, + &unused_entry) == 0) { + local_error += remove_default(&acl, + file->filename); + break; + } remove_ext(&acl, file->filename); need_mask = 0; break;