diff -r c3eb520e2219 -r 708a3d9c759a librazor/razor-root.c --- a/librazor/razor-root.c Mon Jun 16 15:40:30 2008 -0400 +++ b/librazor/razor-root.c Mon Jun 16 22:35:09 2008 -0400 @@ -79,7 +79,7 @@ /* Create the new next repo file up front to ensure exclusive * access. */ snprintf(image->new_path, sizeof image->new_path, - "%s%s/%s", root, root, next_repo_filename); + "%s%s/%s", root, razor_root_path, next_repo_filename); image->fd = open(image->new_path, O_CREAT | O_WRONLY | O_TRUNC | O_EXCL, 0666); if (image->fd < 0) {