Browse Source

login: move generic setting to ttyutils.h

Signed-off-by: Karel Zak <kzak@redhat.com>
pull/1256/head
Karel Zak 1 year ago
parent
commit
726ffb4a26
  1. 7
      include/ttyutils.h
  2. 7
      login-utils/login.c

7
include/ttyutils.h

@ -17,6 +17,13 @@
#include <sys/ttydefaults.h>
#endif
#ifdef USE_TTY_GROUP
# define TTY_MODE 0620
#else
# define TTY_MODE 0600
#endif
#define TTYGRPNAME "tty" /* name of group to own ttys */
/* Some shorthands for control characters. */
#define CTL(x) ((x) ^ 0100) /* Assumes ASCII dialect */
#define CR CTL('M') /* carriage return */

7
login-utils/login.c

@ -89,16 +89,9 @@
#define LOGIN_EXIT_TIMEOUT 5
#define LOGIN_TIMEOUT 60
#ifdef USE_TTY_GROUP
# define TTY_MODE 0620
#else
# define TTY_MODE 0600
#endif
static char **argv0;
static size_t argv_lth;
#define TTYGRPNAME "tty" /* name of group to own ttys */
#define VCS_PATH_MAX 64
#if defined(HAVE_SCANDIRAT) && defined(HAVE_OPENAT)

Loading…
Cancel
Save