1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* cmd.c (edit_symlink_cmd): Small fix to improve the messages printed.
Этот коммит содержится в:
родитель
e22653d418
Коммит
66293f72cd
@ -1,3 +1,8 @@
|
|||||||
|
1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* cmd.c (edit_symlink_cmd): Small fix to improve the messages
|
||||||
|
printed.
|
||||||
|
|
||||||
Tue Mar 2 22:54:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
|
Tue Mar 2 22:54:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||||
|
|
||||||
* util.c (name_quote): Quote '<' and '>'.
|
* util.c (name_quote): Quote '<' and '>'.
|
||||||
|
12
src/cmd.c
12
src/cmd.c
@ -1108,10 +1108,14 @@ void edit_symlink_cmd (void)
|
|||||||
if (dest) {
|
if (dest) {
|
||||||
if (*dest && strcmp (buffer, dest)) {
|
if (*dest && strcmp (buffer, dest)) {
|
||||||
save_cwds_stat ();
|
save_cwds_stat ();
|
||||||
mc_unlink (p);
|
if (-1 == mc_unlink (p)){
|
||||||
if (-1 == mc_symlink (dest, p))
|
message (1, MSG_ERROR, _(" edit symlink, unable to remove %s: %s "),
|
||||||
message (1, MSG_ERROR, _(" edit symlink: %s "),
|
p, unix_error_string (errno));
|
||||||
unix_error_string (errno));
|
} else {
|
||||||
|
if (-1 == mc_symlink (dest, p))
|
||||||
|
message (1, MSG_ERROR, _(" edit symlink: %s "),
|
||||||
|
unix_error_string (errno));
|
||||||
|
}
|
||||||
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
|
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
|
||||||
repaint_screen ();
|
repaint_screen ();
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user