mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
core/socket: shorten socket_fdname()
This commit is contained in:
parent
827d9bf297
commit
845001221d
@ -3250,10 +3250,7 @@ char *socket_fdname(Socket *s) {
|
||||
* didn't specify anything specifically, use the socket unit's
|
||||
* name as fallback. */
|
||||
|
||||
if (s->fdname)
|
||||
return s->fdname;
|
||||
|
||||
return UNIT(s)->id;
|
||||
return s->fdname ?: UNIT(s)->id;
|
||||
}
|
||||
|
||||
static int socket_control_pid(Unit *u) {
|
||||
|
Loading…
Reference in New Issue
Block a user