mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4035] [MERGED] Improve error messages #5006
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5006
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/4035
Author: @Tomin1
Created: 3/3/2021
Status: ✅ Merged
Merged: 3/3/2021
Merged by: @reinerh
Base:
master← Head:few_fixes📝 Commits (2)
732e217Improve error reporting while mountingdc48b88Use strerror(errno) instead of %m📊 Changes
2 files changed (+8 additions, -6 deletions)
View changed files
📝
src/firejail/fs_etc.c(+6 -4)📝
src/firejail/sandbox.c(+2 -2)📄 Description
I sent some changes recently (#3998) and now I noticed that there were some minor things that could have been better.
The first commit moves error message of missing directory while mounting after debug logging so that it's easy to see when the error happens and adds a cause message. The second commit changes %m usages introduced by the changes I made. While %m is reentrant and allows very nice and clean code, it's not consistent with the rest of firejail and also not portable across libc implementations.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.