diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2010-12-06 22:23:04 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2010-12-06 22:23:04 -0500 |
commit | 38fc568607fcad4de5bf198d5182a73eb18d7e98 (patch) | |
tree | 8feae0f3ffe60822eb5cd40abc1dceae74760ecf /src/netnuke.c | |
parent | dbfca826b1f52f213593c9a2f19c2d83d4888029 (diff) | |
download | NetNuke2-38fc568607fcad4de5bf198d5182a73eb18d7e98.tar.gz |
Transition to fcntl.h for I/O
Diffstat (limited to 'src/netnuke.c')
-rw-r--r-- | src/netnuke.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/netnuke.c b/src/netnuke.c index 16f902e..7ff94bc 100644 --- a/src/netnuke.c +++ b/src/netnuke.c @@ -138,13 +138,14 @@ void usage(const char* progname) int main(int argc, char* argv[]) { +/* Re-enable this later... jesus testing is getting annoying. uid_t uid=getuid(), euid=geteuid(); - if (uid < 0 || uid != euid) + if (uid != 0 || uid != euid) { COM(self, "Need root... exiting\n"); exit(1); } - +*/ if((nnlogcleanup()) != 0) { fprintf(stderr, "Failed to cleanup %s: %s\n", NNLOGFILE, strerror(errno)); @@ -299,7 +300,7 @@ int main(int argc, char* argv[]) for( i = 0; device[i] != NULL ; i++ ) { thread[i] = (pthread_t)nnthread(device[i]); - COM(self, "thread id: %ld\n", thread[i]); + COM(self, "thread id: %8X %8X\n", thread[i]); } /* Catch up */ usleep(10000); |