--- embedaddon/sudo/plugins/sudoers/regress/logging/check_wrap.c 2012/02/21 16:23:02 1.1.1.1 +++ embedaddon/sudo/plugins/sudoers/regress/logging/check_wrap.c 2013/10/14 07:56:35 1.1.1.4 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Todd C. Miller + * Copyright (c) 2011-2013 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -36,11 +36,16 @@ # include #endif /* HAVE_STRINGS_H */ +#define SUDO_ERROR_WRAP 0 + #include "missing.h" -#include "error.h" +#include "fatal.h" +#include "sudo_plugin.h" extern void writeln_wrap(FILE *fp, char *line, size_t len, size_t maxlen); +__dso_public int main(int argc, char *argv[]); + static void usage(void) { @@ -65,7 +70,7 @@ main(int argc, char *argv[]) fp = fopen(argv[1], "r"); if (fp == NULL) - errorx(1, "unable to open %s", argv[1]); + fatalx("unable to open %s", argv[1]); /* * Each test record consists of a log entry on one line and a list of @@ -98,10 +103,4 @@ main(int argc, char *argv[]) } exit(0); -} - -void -cleanup(int gotsig) -{ - return; }