diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | changelog | 9 | ||||
-rw-r--r-- | inotail.c | 3 | ||||
-rw-r--r-- | inotail.h | 2 |
4 files changed, 13 insertions, 3 deletions
@@ -4,7 +4,7 @@ # # Licensed under the terms of the GNU General Public License; version 2 or later. -VERSION = 0.3 +VERSION = 0.4 # Paths prefix = /usr/local @@ -1,3 +1,12 @@ +inotail 0.4 + + * Implemented tailing of stdin + * Fixed handling of EINTR signal (^Z/fg) (patch by Anthony Martinez) + * Improved error handling (patch by Folkert van Heusden) + * Added uninstall target to Makefile (patch by Folkert van Heusden) + + -- Tobias Klauser <tklauser@distanz.ch> 2007-06-04 14:44 + inotail 0.3 * Follow files even if they were moved @@ -30,7 +30,6 @@ #include <fcntl.h> #include <errno.h> #include <getopt.h> -#include <ctype.h> #include <assert.h> #include <sys/types.h> #include <sys/stat.h> @@ -580,7 +579,7 @@ int main(int argc, char **argv) } else if (*optarg == '-') optarg++; - if (!isdigit(*optarg)) { + if (!is_digit(*optarg)) { fprintf(stderr, "Invalid number of lines: %s\n", optarg); exit(EXIT_FAILURE); } @@ -29,6 +29,8 @@ struct file_struct { #define IS_TAILABLE(mode) \ (S_ISREG(mode) || IS_PIPELIKE(mode) || S_ISCHR(mode)) +#define is_digit(c) ((c) >= '0' && (c) <= '9') + #ifdef DEBUG # define dprintf(fmt, args...) fprintf(stderr, fmt, ##args) #else |