* utilunix.c (canonicalize_pathname): Don't extend empty path
to "." - it can corrupt memory.
Этот коммит содержится в:
родитель
cb06231d26
Коммит
18c160fefa
@ -1,5 +1,8 @@
|
|||||||
2002-07-26 Pavel Roskin <proski@gnu.org>
|
2002-07-26 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* utilunix.c (canonicalize_pathname): Don't extend empty path
|
||||||
|
to "." - it can corrupt memory.
|
||||||
|
|
||||||
* cmd.c (copymove_cmd_with_default): Remove, it's unused.
|
* cmd.c (copymove_cmd_with_default): Remove, it's unused.
|
||||||
(copy_cmd_local): New function, copy within panel.
|
(copy_cmd_local): New function, copy within panel.
|
||||||
(ren_cmd_local): New function, rename within panel.
|
(ren_cmd_local): New function, rename within panel.
|
||||||
|
@ -570,6 +570,9 @@ char *canonicalize_pathname (char *path)
|
|||||||
int i, start;
|
int i, start;
|
||||||
char stub_char;
|
char stub_char;
|
||||||
|
|
||||||
|
if (!*path)
|
||||||
|
return path;
|
||||||
|
|
||||||
stub_char = (*path == PATH_SEP) ? PATH_SEP : '.';
|
stub_char = (*path == PATH_SEP) ? PATH_SEP : '.';
|
||||||
|
|
||||||
/* Walk along path looking for things to compact. */
|
/* Walk along path looking for things to compact. */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user