Description of Problem: Name: mktemp Version: 1.5 Release: 9 mktemp-1.5-9 had a patch for "mktemp -d" on glibc-2.1 system, but it doesn't work. Here's a problem. "mktemp -d" returns "testing.XXAAR6wj", but the directory created by "mktemp -d"is "testing.XXXXXXXX". [sagami@sandra testing]$ ls dir_for_testing_mktemp_d/ [sagami@sandra testing]$ ls dir_for_testing_mktemp_d/ [sagami@sandra testing]$ mktemp -d testing.XXXXXXXX testing.XXAAR6wj [sagami@sandra testing]$ ls dir_for_testing_mktemp_d/ testing.XXXXXXXX/ Additional Information: A patch below will solve the problem. I think you just want to modify mktemp-1.5-glibc21_compat.patch applied in mktemp-1.5-9. Best regards. --- mktemp.c.lisa Wed May 9 04:31:32 2001 +++ mktemp.c Wed May 9 04:32:45 2001 @@ -91,7 +91,7 @@ if (mktemp(temp) == NULL) { return NULL; } - ret = mkdir(template, 0700); + ret = mkdir(temp, 0700); /* success, return the name of the new directory */ if (ret == 0) {
It's fixed in mktemp-1.5-11. Thanks