bashcompletions += ['mesg']
endif
+tty_setgid = get_option('tty-setgid')
+if tty_setgid
+ tty_install_mode = [ 'rwxr-sr-x', 'root', 'tty' ]
+else
+ tty_install_mode = [ false, false, false ]
+endif
+
opt = not get_option('build-wall').disabled()
exe = executable(
'wall',
link_with : [lib_common],
dependencies : [lib_systemd],
install_dir : usrbin_exec_dir,
- install_mode : [ 'rwxr-sr-x', 'root', 'tty' ],
+ install_mode : tty_install_mode,
install : opt,
build_by_default : opt)
if opt
link_with : [lib_common],
dependencies : [lib_systemd],
install_dir : usrbin_exec_dir,
- install_mode : [ 'rwxr-sr-x', 'root', 'tty' ],
+ install_mode : tty_install_mode,
install : opt,
build_by_default : opt)
if opt
option('login-lastlogin', type : 'boolean',
value : false,
description : 'program login writes lastlog entries')
+
+option('tty-setgid', type : 'boolean',
+ value : true,
+ description : 'setgid tty group for wall and write programs')