Sign in
third-party-mirror
/
systemd
/
2398d87694e8af48e92ff8fb5f9cf273f706fb00
/
.
/
src
/
basic
/
login-util.c
blob: 044e8b7650ec606a0ba6af52902e21bcb50b6ce1 [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include
"login-util.h"
#include
"string-util.h"
bool
session_id_valid
(
const
char
*
id
)
{
if
(
isempty
(
id
))
return
false
;
return
id
[
strspn
(
id
,
LETTERS DIGITS
)]
==
'\0'
;
}