diff options
Diffstat (limited to 'support/support_chroot.c')
-rw-r--r-- | support/support_chroot.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/support/support_chroot.c b/support/support_chroot.c index f6fad18f33..693813f694 100644 --- a/support/support_chroot.c +++ b/support/support_chroot.c @@ -45,12 +45,7 @@ struct support_chroot * support_chroot_create (struct support_chroot_configuration conf) { struct support_chroot *chroot = xmalloc (sizeof (*chroot)); - - { - char *template = xasprintf ("%s/tst-resolv-res_init-XXXXXX", test_dir); - chroot->path_chroot = support_create_temp_directory (template); - free (template); - } + chroot->path_chroot = support_create_temp_directory ("tst-resolv-res_init-"); /* Create the /etc directory in the chroot environment. */ char *path_etc = xasprintf ("%s/etc", chroot->path_chroot); |