summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c
index 00c6bb872..fe3ccda70 100644
--- a/mdk-stage1/directory.c
+++ b/mdk-stage1/directory.c
@@ -136,7 +136,7 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me
add_to_env("METHOD", method_iso);
} else {
log_message("assuming %s is a mirror tree", location_full);
- symlink(location_full, IMAGE_LOCATION);
+ symlink(basename(location_full), IMAGE_LOCATION);
add_to_env("METHOD", method_live);
}
#ifndef MANDRAKE_MOVE