It does not make sense to request zero UUIDs - report error. Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx> --- misc-utils/uuidd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 9639f7c..d4b3803 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -435,7 +435,7 @@ int main(int argc, char **argv) break; case 'n': num = strtol(optarg, &tmp, 0); - if ((num < 0) || *tmp) { + if ((num < 1) || *tmp) { fprintf(stderr, _("Bad number: %s\n"), optarg); exit(1); } -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html