From 26af0abae588b93e616f5e42b991796b4e3e6b9a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 1 Oct 2009 03:08:39 +0000 Subject: No space left on device no longer scrolls the screen. --- netnuke.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/netnuke.c b/netnuke.c index b7b9a06..2ea0354 100644 --- a/netnuke.c +++ b/netnuke.c @@ -322,6 +322,13 @@ int nuke(media_t device) lwrite("Jumping from byte %jd to %jd.\n", current, next); fprintf(stderr, "Jumping from byte %jd to %jd.\n", current, next); } + + if(errno == ENOSPC) + { + lwrite("%s: No space left on device. seek position %jd\n", device.nameshort, current); + fprintf(stderr, "%s: No space left on device. seek position %jd\n", device.nameshort, current); + break; + } lwrite("%s: %s, while writing chunk %jd. seek position %jd\n", device.nameshort, strerror(errno), block, current); fprintf(stderr, "%s: %s, while writing chunk %jd. seek position %jd\n", device.nameshort, strerror(errno), block, current); @@ -679,7 +686,7 @@ int main(int argc, char* argv[]) exit(3); } - logopen("/tmp/netnuke.log"); + logopen("/var/log/netnuke.log"); lwrite(NETNUKE_VERSION_STRING); lwrite("Logging started\n"); -- cgit