From 2747e2b658b2f27897a80345cb3afb196c0e7c3b Mon Sep 17 00:00:00 2001 From: David Date: Sat, 31 May 2014 21:06:56 +1200 Subject: Added strip section to Makefile (saves 9kb heh) --- trayfreq_set.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'trayfreq_set.c') diff --git a/trayfreq_set.c b/trayfreq_set.c index 7a48af5..8f2ad72 100644 --- a/trayfreq_set.c +++ b/trayfreq_set.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -125,6 +126,11 @@ int main(int argc, char *argv[]) // If unusual number of args, give up now if (argc == 5) { + + debug ("Checking UID\n"); + if (getuid() != 0) + fprintf(stderr,"Warning: running as UID %d, not 0\n",getuid() ); + get_argument_summary(argc, argv, &args); debug("Correct number of command line arguments\n"); -- cgit v1.1