<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - shared/util.c:get_group_creds() should not return -ESRCH upon error"
href="https://bugs.freedesktop.org/show_bug.cgi?id=67958">67958</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>shared/util.c:get_group_creds() should not return -ESRCH upon error
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cjashfor@linux.vnet.ibm.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>get_group_creds is returning -ESRCH upon error. The name of this error code
sounds reasonable, but the error string is "No such process". This is a
confusing error message for looking up a user group name.
The same problem exists for the functions get_user_creds() and get_home_dir().
We ran into this error during boot-up:
systemd-journald: Failed to resolve 'systemd-journal' group:
No such process
I ended up downloading the source of systemd to see if it was talking about a
cgroup or a user group.
Instead of ESRCH, I'd suggest ENOENT.
There doesn't seem to be a perfect error code for this, but ESRCH is not a good
choice in my opinion.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>