]> arthur.barton.de Git - netatalk.git/commitdiff
uuid_unparse_upper is not portable
authorFrank Lahm <franklahm@googlemail.com>
Wed, 30 Jun 2010 05:52:20 +0000 (07:52 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Wed, 30 Jun 2010 05:52:20 +0000 (07:52 +0200)
etc/afpd/volume.c

index b5ab59694b612b371c028aa4a3ddfad7b80a76e1..bf90e9a6008997bde965d3dd053c6a8c945ffe71 100644 (file)
@@ -2725,7 +2725,9 @@ char *get_uuid(const AFPObj *obj, const char *volname)
     /* generate uuid and write to file */
     uuid_t id;
     uuid_generate(id);
-    uuid_unparse_upper(id, uuid);
+    uuid_unparse(id, uuid);
+    for (int i=0; uuid[i]; i++)
+        uuid[i] = toupper(uuid[i]);
     LOG(log_debug, logtype_afpd, "get_uuid('%s'): generated UUID '%s'", volname, uuid);
 
     fprintf(fp, "\"%s\"\t%36s\n", volname, uuid);