|
|
@ -617,7 +617,7 @@ static int dracut_install(const char *src, const char *dst, bool isdir, bool res |
|
|
|
|
|
|
|
|
|
|
|
hashmap_put(items, i, i); |
|
|
|
hashmap_put(items, i, i); |
|
|
|
|
|
|
|
|
|
|
|
ret = asprintf(&fulldstpath, "%s%s", destrootdir, dst); |
|
|
|
ret = asprintf(&fulldstpath, "%s/%s", destrootdir, dst); |
|
|
|
if (ret < 0) { |
|
|
|
if (ret < 0) { |
|
|
|
log_error("Out of memory!"); |
|
|
|
log_error("Out of memory!"); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
exit(EXIT_FAILURE); |
|
|
@ -704,7 +704,7 @@ static int dracut_install(const char *src, const char *dst, bool isdir, bool res |
|
|
|
if (lstat(fulldstpath, &sb) != 0) { |
|
|
|
if (lstat(fulldstpath, &sb) != 0) { |
|
|
|
_cleanup_free_ char *absdestpath = NULL; |
|
|
|
_cleanup_free_ char *absdestpath = NULL; |
|
|
|
|
|
|
|
|
|
|
|
ret = asprintf(&absdestpath, "%s%s", destrootdir, abspath); |
|
|
|
ret = asprintf(&absdestpath, "%s/%s", destrootdir, abspath); |
|
|
|
if (ret < 0) { |
|
|
|
if (ret < 0) { |
|
|
|
log_error("Out of memory!"); |
|
|
|
log_error("Out of memory!"); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|