From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F2C74822B8 for ; Wed, 21 Dec 2016 00:55:05 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP; 21 Dec 2016 00:55:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,382,1477983600"; d="scan'208";a="45281505" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by fmsmga005.fm.intel.com with ESMTP; 21 Dec 2016 00:55:04 -0800 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Wed, 21 Dec 2016 16:54:59 +0800 Message-Id: <20161221085501.159796-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [PATCH 0/2] ShellPkg/cd: Fix "cd" to support "fs0:dir" (no slash after ':') X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 08:55:06 -0000 When "fs0:dir"(drive letter without slash) is used as destination of "cd", "cd" tries to change to "dir" in root directory of "fs0:". It's incorrect. The correct behavior is to change to "dir" in current directory of "fs0:" Ruiyu Ni (2): MdePkg/BaseLib: Fix PathCleanUpDirectories to correctly handle "\.\" ShellPkg/cd: Fix "cd" to support "fs0:dir" (no slash after ':') MdePkg/Library/BaseLib/FilePaths.c | 60 ++-- ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c | 415 +++++++++++++---------- 2 files changed, 265 insertions(+), 210 deletions(-) -- 2.9.0.windows.1