[PR #6172] [MERGED] bugfix: print version to stderr on startup #5855

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/6172
Author: @kmk3
Created: 1/28/2024
Status: Merged
Merged: 1/31/2024
Merged by: @kmk3

Base: masterHead: fix-version-stdout


📝 Commits (1)

  • ebc9662 bugfix: print version to stderr on startup

📊 Changes

3 files changed (+8 additions, -8 deletions)

View changed files

📝 src/firejail/firejail.h (+1 -1)
📝 src/firejail/main.c (+3 -3)
📝 src/firejail/usage.c (+4 -4)

📄 Description

Unlike the rest of the normal startup output (which goes to stderr), the
version number is being printed to stdout, which makes it harder to
ignore all of firejail's output. Example:

$ firejail --noprofile /usr/bin/true --version 2>/dev/null
firejail version 0.9.73

true (GNU coreutils) 9.4
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering.

So make the normal startup version output go to stderr and keep the
other occurrences (such as in firejail --version) going to stdout, to
make it easier to grep things in the output.

Added on commit f019f0ec3 ("Print version on startup for
firejail/firecfg", 2023-05-11) / PR #5829.

Reported by @rusty-snake[1].

[1] https://github.com/netblue30/firejail/issues/6171#issuecomment-1912768721


🔄 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/6172 **Author:** [@kmk3](https://github.com/kmk3) **Created:** 1/28/2024 **Status:** ✅ Merged **Merged:** 1/31/2024 **Merged by:** [@kmk3](https://github.com/kmk3) **Base:** `master` ← **Head:** `fix-version-stdout` --- ### 📝 Commits (1) - [`ebc9662`](https://github.com/netblue30/firejail/commit/ebc9662f6a5f229cc46eba61d4e6694d3150752d) bugfix: print version to stderr on startup ### 📊 Changes **3 files changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/firejail.h` (+1 -1) 📝 `src/firejail/main.c` (+3 -3) 📝 `src/firejail/usage.c` (+4 -4) </details> ### 📄 Description Unlike the rest of the normal startup output (which goes to stderr), the version number is being printed to stdout, which makes it harder to ignore all of firejail's output. Example: $ firejail --noprofile /usr/bin/true --version 2>/dev/null firejail version 0.9.73 true (GNU coreutils) 9.4 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Jim Meyering. So make the normal startup version output go to stderr and keep the other occurrences (such as in `firejail --version`) going to stdout, to make it easier to grep things in the output. Added on commit f019f0ec3 ("Print version on startup for firejail/firecfg", 2023-05-11) / PR #5829. Reported by @rusty-snake[1]. [1] https://github.com/netblue30/firejail/issues/6171#issuecomment-1912768721 --- <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:46:10 -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#5855
No description provided.