From 27156191f1dfff72ce01b283f0fef629eb871965 Mon Sep 17 00:00:00 2001 From: xSlendiX Date: Mon, 3 May 2021 01:21:49 +0300 Subject: [PATCH] Updated sus.c --- Makefile | 2 +- sus.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d1f0325..acf070a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ build: - cc -lcrypt sus.c -o sus + cc -lcrypt -I. sus.c -o sus all: build install diff --git a/sus.c b/sus.c index e73051a..756c366 100644 --- a/sus.c +++ b/sus.c @@ -19,7 +19,7 @@ #define MAX_PASSWORD 3 -// TODO: Add group check +// TODO: Add pipe support void get_password(char *password); @@ -48,6 +48,9 @@ void intHandler(int dummy) { } int main(int argc, char** argv) { + struct rule *rule; + char **envp; + if (CheckIfInGroup("wheel") != 1) { puts("ERROR: Not in the wheel group."); return 0; @@ -161,7 +164,7 @@ void PrintHelp() { int AskPassword() { for (int i=0; i