[PR #3594] [MERGED] cat option #4825

Closed
opened 2026-05-05 10:27:15 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/3594
Author: @smitsohu
Created: 8/18/2020
Status: Merged
Merged: 8/22/2020
Merged by: @netblue30

Base: masterHead: ls


📝 Commits (5)

  • 66c398e refactor ls.c and prepare for new --cat option
  • 921b0c9 drop system(3) calls from sandbox.c
  • f473c95 cat option
  • ef9fdc4 Merge branch 'master' into ls
  • 450ae94 harden cat option

📊 Changes

6 files changed (+174 additions, -92 deletions)

View changed files

📝 src/firejail/firejail.h (+3 -0)
📝 src/firejail/ls.c (+106 -63)
📝 src/firejail/main.c (+31 -0)
📝 src/firejail/sandbox.c (+14 -26)
📝 src/firejail/usage.c (+3 -0)
📝 src/man/firejail.txt (+17 -3)

📄 Description

Add a --cat option, similar to --ls, that prints the content of a sandbox file to standard out. Also use the added functionality to replace all remaining system(3) calls.

Note that rIght now this is only a poor man's cat that actually cannot concatenate files but just print a single file.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/3594 **Author:** [@smitsohu](https://github.com/smitsohu) **Created:** 8/18/2020 **Status:** ✅ Merged **Merged:** 8/22/2020 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `ls` --- ### 📝 Commits (5) - [`66c398e`](https://github.com/netblue30/firejail/commit/66c398e34cdf39c5ad9aa06bd022ce8a518bcbc4) refactor ls.c and prepare for new --cat option - [`921b0c9`](https://github.com/netblue30/firejail/commit/921b0c95a91d621786346dc6f6e88d8907852bc7) drop system(3) calls from sandbox.c - [`f473c95`](https://github.com/netblue30/firejail/commit/f473c959d2549ec0799bc6a7b7609c10b7f7e758) cat option - [`ef9fdc4`](https://github.com/netblue30/firejail/commit/ef9fdc4a1f367ec4a0495ca51e3ed44338df0408) Merge branch 'master' into ls - [`450ae94`](https://github.com/netblue30/firejail/commit/450ae941a52e44a1acf68628fa8c3c9e293a8ea3) harden cat option ### 📊 Changes **6 files changed** (+174 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/firejail.h` (+3 -0) 📝 `src/firejail/ls.c` (+106 -63) 📝 `src/firejail/main.c` (+31 -0) 📝 `src/firejail/sandbox.c` (+14 -26) 📝 `src/firejail/usage.c` (+3 -0) 📝 `src/man/firejail.txt` (+17 -3) </details> ### 📄 Description Add a `--cat` option, similar to `--ls`, that prints the content of a sandbox file to standard out. Also use the added functionality to replace all remaining system(3) calls. Note that rIght now this is only a poor man's `cat` that actually cannot concatenate files but just print a single file. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:27:15 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#4825
No description provided.