From: Petr Uzel Date: Mon, 14 Feb 2011 13:43:23 +0000 (+0100) Subject: libuuid: fix test in get_clock() X-Git-Tag: v2.20-rc1~562 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7491ee6a5a5e9c72c5154022a7151a18a86599cb;p=thirdparty%2Futil-linux.git libuuid: fix test in get_clock() Signed-off-by: Petr Uzel --- diff --git a/shlibs/uuid/src/gen_uuid.c b/shlibs/uuid/src/gen_uuid.c index e567b297f5..a27d49c96d 100644 --- a/shlibs/uuid/src/gen_uuid.c +++ b/shlibs/uuid/src/gen_uuid.c @@ -392,7 +392,7 @@ try_again: last.tv_usec = last.tv_usec % 1000000; } - if (state_fd > 0) { + if (state_fd >= 0) { rewind(state_f); len = fprintf(state_f, "clock: %04x tv: %016lu %08lu adj: %08d\n",