[PR #198] [MERGED] use UTMP_FILE to check for its existence #3563

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/198
Author: @Duncaen
Created: 12/19/2015
Status: Merged
Merged: 12/20/2015
Merged by: @netblue30

Base: masterHead: musl


📝 Commits (1)

  • f9a8757 use UTMP_FILE to check for its existence

📊 Changes

1 file changed (+2 additions, -4 deletions)

View changed files

📝 src/firejail/fs_var.c (+2 -4)

📄 Description

With musl libc UTMP_FILE is defined as /dev/null/utmp, on my system /var/run/utmp existed too but its just an empty file.
fs_var_utmp checks /var/run/utmp and then later opens UTMP_FILE resulting in following error:

Error fopen:fs_var_utmp(324): Not a directory

🔄 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/198 **Author:** [@Duncaen](https://github.com/Duncaen) **Created:** 12/19/2015 **Status:** ✅ Merged **Merged:** 12/20/2015 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `musl` --- ### 📝 Commits (1) - [`f9a8757`](https://github.com/netblue30/firejail/commit/f9a8757ee2b4be9b5fcd5237edce260e0185750a) use UTMP_FILE to check for its existence ### 📊 Changes **1 file changed** (+2 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/fs_var.c` (+2 -4) </details> ### 📄 Description With musl libc `UTMP_FILE` is defined as `/dev/null/utmp`, on my system `/var/run/utmp` existed too but its just an empty file. `fs_var_utmp` checks `/var/run/utmp` and then later opens `UTMP_FILE` resulting in following error: ``` Error fopen:fs_var_utmp(324): Not a directory ``` --- <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:03:44 -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#3563
No description provided.