From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaegeuk Kim Subject: [PATCH] sload.f2fs: give correct file type Date: Mon, 7 May 2018 11:58:33 -0700 Message-ID: <20180507185833.76359-1-jaegeuk@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fFlLO-0006VY-CN for linux-f2fs-devel@lists.sourceforge.net; Mon, 07 May 2018 18:58:42 +0000 Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1fFlLM-00BB2E-Vo for linux-f2fs-devel@lists.sourceforge.net; Mon, 07 May 2018 18:58:42 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim , Lianjun Huang From: Lianjun Huang This fixes permission error due to wrong file type. Signed-off-by: Lianjun Huang Signed-off-by: Jaegeuk Kim --- fsck/sload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsck/sload.c b/fsck/sload.c index 2842f2c..2fb13f2 100644 --- a/fsck/sload.c +++ b/fsck/sload.c @@ -106,7 +106,7 @@ static int set_perms_and_caps(struct dentry *de) /* Permissions */ if (fs_config_func != NULL) { - fs_config_func(mnt_path, S_ISDIR(de->mode), + fs_config_func(mnt_path, de->file_type == F2FS_FT_DIR, c.target_out_dir, &uid, &gid, &imode, &capabilities); de->uid = uid & 0xffff; -- 2.17.0.484.g0c8726318c-goog ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot