* file.c (make_symlink): Fix off by one in symlink creation.
Этот коммит содержится в:
родитель
b2952be541
Коммит
2319ac0f7b
@ -1,3 +1,7 @@
|
||||
2005-09-17 Jindrich Novy <jnovy@redhat.com>
|
||||
|
||||
* file.c (make_symlink): Fix off by one in symlink creation.
|
||||
|
||||
2005-09-17 Jindrich Novy <jnovy@redhat.com>
|
||||
|
||||
* util.c (diff_two_paths): Abort when second symlink can't be
|
||||
|
@ -381,7 +381,7 @@ make_symlink (FileOpContext *ctx, const char *src_path, const char *dst_path)
|
||||
const char *r = strrchr (src_path, PATH_SEP);
|
||||
|
||||
if (r) {
|
||||
p = g_strndup (src_path, r - src_path);
|
||||
p = g_strndup (src_path, r - src_path + 1);
|
||||
if (*dst_path == PATH_SEP)
|
||||
q = g_strdup (dst_path);
|
||||
else
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user