Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v239-46
/
.
/
src
/
basic
/
login-util.c
blob: 085ccd09154a4af16d3cc0070b8caaee86392327 [
file
] [
log
] [
blame
] [
raw
]
/* SPDX-License-Identifier: LGPL-2.1+ */
#include
<string.h>
#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'
;
}