summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-06-16 22:28:51 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-16 22:32:39 -0400
commit8d9c75f44ae1640f84dacc9410e081e3f4e9327e (patch)
treec0ba1c0ad9e5bffab4c996ec7ed59ebcae4962c1
parentdd3840c84dbf24e06f9c301bec233b2735cc712f (diff)
Fix a typo when creating the root path.
-rw-r--r--librazor/razor-root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librazor/razor-root.c b/librazor/razor-root.c
index 12de470..8c032ef 100644
--- a/librazor/razor-root.c
+++ b/librazor/razor-root.c
@@ -79,7 +79,7 @@ razor_root_open(const char *root, int flags)
/* 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) {