diff options
Diffstat (limited to 'mdk-stage1/directory.c')
| -rw-r--r-- | mdk-stage1/directory.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c index 3c644f379..0538b55b6 100644 --- a/mdk-stage1/directory.c +++ b/mdk-stage1/directory.c @@ -1,8 +1,8 @@ /* - * Guillaume Cottenceau (gc@mandrakesoft.com) - * Olivier Blin (oblin@mandrakesoft.com) + * Guillaume Cottenceau (gc) + * Olivier Blin (oblin) * - * Copyright 2000 Mandrakesoft + * Copyright 2000 Mandriva * * This software may be freely redistributed under the terms of the GNU * public license. @@ -141,10 +141,7 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me add_to_env("ISOPATH", location_full); add_to_env("METHOD", method_iso); } else { - int offset = strncmp(location_full, IMAGE_LOCATION_DIR, sizeof(IMAGE_LOCATION_DIR) - 1) == 0 ? sizeof(IMAGE_LOCATION_DIR) - 1 : 0; - log_message("assuming %s is a mirror tree", location_full + offset); - - symlink(location_full + offset, IMAGE_LOCATION); + create_IMAGE_LOCATION(location_full); add_to_env("METHOD", method_live); } |
