chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
59ac08140e37621c54ac5533f94ff0545b8a815f
[elogind.git]
/
src
/
basic
/
login-util.c
1
/* SPDX-License-Identifier: LGPL-2.1+ */
2
/***
3
Copyright 2013 Zbigniew Jędrzejewski-Szmek
4
***/
5
6
#include <string.h>
7
8
#include "login-util.h"
9
#include "string-util.h"
10
11
bool session_id_valid(const char *id) {
12
13
if (isempty(id))
14
return false;
15
16
return id[strspn(id, LETTERS DIGITS)] == '\0';
17
}