<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-08-27T07:58:44+00:00</updated>
<entry>
<title>ShellPkg/Ls: Initialize list pointer variable</title>
<updated>2026-08-27T07:58:44+00:00</updated>
<author>
<name>Artem Senichev</name>
<email>artemsen@gmail.com</email>
</author>
<published>2026-08-19T11:28:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=19d74a12441794183d14f80ebc3e356de26320c4'/>
<id>urn:sha1:19d74a12441794183d14f80ebc3e356de26320c4</id>
<content type='text'>
Using an uninitialized variable resulted in a system exception when the
user typed the `ls -r` command.

ShellOpenFileMetaArg() only allocates a list head when this is NULL, and
appends to whatever it points at otherwise.

Signed-off-by: Artem Senichev &lt;artemsen@gmail.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Remove double-free calls</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-05-04T08:28:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=4e1e7393384987244fdb824e80be24db2468da29'/>
<id>urn:sha1:4e1e7393384987244fdb824e80be24db2468da29</id>
<content type='text'>
Package is always freed in ShellCommandRunLs().
Remove calls to ShellCommandLineFreeVarList() in MainCmdLs().

This double-free was introduced in:
commit 531b0aa00211 ("ShellPkg/UefiShellLevel2:
Extract MainCmdXXX() function")

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Extract PrintLsOutputCurr() function</title>
<updated>2026-04-24T18:18:47+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-04-03T09:47:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=be6ce32cd0118806de1a5575a535a76644076ef7'/>
<id>urn:sha1:be6ce32cd0118806de1a5575a535a76644076ef7</id>
<content type='text'>
Extract a PrintLsOutputCurr() function to decrease
the size of PrintLsOutput().

The patch also rationalize the usage of the Found
parameter:
- Found is updated only when a valid MetaFile is found
- a IsRecursive variable is created to distinguish
  the first PrintLsOutput() call from the other
  recursive ones.

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Lower PrintLsOutputRec() indentation level</title>
<updated>2026-04-24T18:18:47+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-04-03T09:29:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=636761d3cab451445b6c2b76b0821d2adf0181a5'/>
<id>urn:sha1:636761d3cab451445b6c2b76b0821d2adf0181a5</id>
<content type='text'>
Invert some conditions in PrintLsOutputRec() to lower
the indentation level.

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Extract PrintLsOutputRec() function</title>
<updated>2026-04-24T18:18:47+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-04-03T09:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=da54ab306a6291492cccedc28555b38a6112ab0d'/>
<id>urn:sha1:da54ab306a6291492cccedc28555b38a6112ab0d</id>
<content type='text'>
Extract a PrintLsOutputRec() function to decrease
the size of PrintLsOutput().

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Remove unused TimeZone parameter</title>
<updated>2026-04-24T18:18:47+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-04-03T09:09:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=08bc059570d88e53f4a7c9fa9e8f5e849ea3b7fd'/>
<id>urn:sha1:08bc059570d88e53f4a7c9fa9e8f5e849ea3b7fd</id>
<content type='text'>
The TimeZone parameter is not used. Remove it.

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Hard-code number of files if none found</title>
<updated>2026-04-24T18:18:47+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-04-03T09:03:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=78b550f43d2fa6c5b9439f985a67f572752b3a3c'/>
<id>urn:sha1:78b550f43d2fa6c5b9439f985a67f572752b3a3c</id>
<content type='text'>
If no file/directory has been found, the number of
files/directories must be 0.
Hard-code these values to avoid depending on the
FileCount/FileSize/DirCount variables.

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Extract GetCorrectedPath() function</title>
<updated>2026-04-24T18:18:47+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-04-03T08:56:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=273edd9e014730a1f70bb04eff53916c4e246d7a'/>
<id>urn:sha1:273edd9e014730a1f70bb04eff53916c4e246d7a</id>
<content type='text'>
Extract a GetCorrectedPath() function to decrease
the size of PrintLsOutput().

Also free the CorrectedPath in PrintLsOutput() before
re-allocating it to prepare for follow-up factorization.

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Move FileMetaArg closing logic</title>
<updated>2026-04-24T18:18:47+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-04-03T09:37:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9171edd4d44629dc233d63f017b4d9d5b5c8993d'/>
<id>urn:sha1:9171edd4d44629dc233d63f017b4d9d5b5c8993d</id>
<content type='text'>
Move ShellCloseFileMetaArg() calls to close the
MetaArg whenever its usage is not needed anymore.
This prepares for follow-up factorization.

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Extract UpdateFileLocalTime() function</title>
<updated>2026-04-24T18:18:47+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-04-03T07:48:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=c45e930ad581b37881becc3d3c583d7fc1aeeb55'/>
<id>urn:sha1:c45e930ad581b37881becc3d3c583d7fc1aeeb55</id>
<content type='text'>
Extract a UpdateFileLocalTime() function to decrease
the size of PrintLsOutput().

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
</feed>
