Systemd/src/basic/login-util.c

15 lines
267 B
C
Raw Normal View History

/* SPDX-License-Identifier: LGPL-2.1+ */
2013-09-16 18:04:20 +02:00
#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';
}