Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] uuidgen: print warning if uuidd isn't running
@ 2011-06-08 13:35 Ludwig Nussel
  2011-06-14 11:45 ` Karel Zak
  0 siblings, 1 reply; 6+ messages in thread
From: Ludwig Nussel @ 2011-06-08 13:35 UTC (permalink / raw)
  To: util-linux; +Cc: Ludwig Nussel

---
 misc-utils/uuidgen.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/misc-utils/uuidgen.c b/misc-utils/uuidgen.c
index 3cf6ec9..47f8e8f 100644
--- a/misc-utils/uuidgen.c
+++ b/misc-utils/uuidgen.c
@@ -59,7 +59,9 @@ main (int argc, char *argv[])
 
 	switch (do_type) {
 	case DO_TYPE_TIME:
-		uuid_generate_time(uu);
+		if (uuid_generate_time_safe(uu)) {
+			fprintf(stderr, _("Warning: uuidd not running or not operational. Time based uuid may not be unique.\n"));
+		}
 		break;
 	case DO_TYPE_RANDOM:
 		uuid_generate_random(uu);
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-14 14:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08 13:35 [PATCH] uuidgen: print warning if uuidd isn't running Ludwig Nussel
2011-06-14 11:45 ` Karel Zak
2011-06-14 11:51   ` Karel Zak
2011-06-14 12:06     ` Ludwig Nussel
2011-06-14 12:17       ` Voelker, Bernhard
2011-06-14 14:38       ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox