Browse Source

Use standard cmake way to install setuid binaries

pull/2/head
Slávek Banko 9 years ago
parent
commit
82958c52cc
  1. 3
      kcheckpass/CMakeLists.txt
  2. 3
      tdekbdledsync/CMakeLists.txt

3
kcheckpass/CMakeLists.txt

@ -28,7 +28,6 @@ tde_add_executable( kcheckpass AUTOMOC
checkpass_shadow.c checkpass_osfc2passwd.c checkpass_aix.c
LINK tdefakes-shared ${CRYPT_LIBRARY} ${PAM_LIBRARY}
DESTINATION ${BIN_INSTALL_DIR}
SETUID
)
install( CODE "execute_process( COMMAND chown 0 \$ENV{DESTDIR}${_destination}/kcheckpass )" )
install( CODE "execute_process( COMMAND chmod 4755 \$ENV{DESTDIR}${_destination}/kcheckpass )" )

3
tdekbdledsync/CMakeLists.txt

@ -25,7 +25,6 @@ tde_add_executable( tdekbdledsync
SOURCES getfd.c main.cpp
LINK udev X11
DESTINATION ${BIN_INSTALL_DIR}
SETUID
)
install( CODE "execute_process( COMMAND chown 0 \$ENV{DESTDIR}${_destination}/tdekbdledsync )" )
install( CODE "execute_process( COMMAND chmod 4755 \$ENV{DESTDIR}${_destination}/tdekbdledsync )" )

Loading…
Cancel
Save