added a wait mode to make ncurses possible
This commit is contained in:
parent
7058a7e6c1
commit
bd966ba2e6
4 changed files with 183 additions and 95 deletions
17
Makefile
17
Makefile
|
@ -1,3 +1,16 @@
|
|||
INSTALL_PREFIX = /usr/local/bin
|
||||
CC = gcc
|
||||
|
||||
all:
|
||||
gcc -o ./rsudo rsudo.c
|
||||
all: rsudo setuid
|
||||
|
||||
setuid: rsudo
|
||||
chown root:root rsudo
|
||||
chmod 4711 rsudo
|
||||
|
||||
.PHONY: all setuid
|
||||
|
||||
rsudo: rsudo.c
|
||||
$(CC) -o ./rsudo rsudo.c
|
||||
|
||||
install: rsudo
|
||||
install -Dm4711 rsudo $(INSTALL_PREFIX)/rsudo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue