mirror of https://github.com/MidnightCommander/mc
* sfs.c (redirect): Don't free the filename after failed
mc_mkstemps() - it's not needed anymore.
This commit is contained in:
parent
a13c1d1928
commit
112b99950e
|
@ -1,15 +1,20 @@
|
||||||
|
2001-05-22 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* sfs.c (redirect): Don't free the filename after failed
|
||||||
|
mc_mkstemps() - it's not needed anymore.
|
||||||
|
|
||||||
2001-05-21 Pavel Roskin <proski@gnu.org>
|
2001-05-21 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* vfs/direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
|
* direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
|
||||||
temporary file to reserve its name on the filesystem.
|
temporary file to reserve its name on the filesystem.
|
||||||
(vfs_s_retrieve_file): Use mc_mkstemps().
|
(vfs_s_retrieve_file): Use mc_mkstemps().
|
||||||
(g_tempnam): Remove.
|
(g_tempnam): Remove.
|
||||||
* vfs/extfs.c (extfs_open): Use mc_mkstemps().
|
* extfs.c (extfs_open): Use mc_mkstemps().
|
||||||
* vfs/sfs.c (redirect): Likewise.
|
* sfs.c (redirect): Likewise.
|
||||||
* vfs/shared_ftp_fish.c (_get_file_entry): Likewise.
|
* shared_ftp_fish.c (_get_file_entry): Likewise.
|
||||||
(retrieve_file): Likewise.
|
(retrieve_file): Likewise.
|
||||||
* vfs/vfs.c (mc_def_getlocalcopy): Likewise.
|
* vfs.c (mc_def_getlocalcopy): Likewise.
|
||||||
* vfs/xdirentry.h: Remove declaration of g_tempnam().
|
* xdirentry.h: Remove declaration of g_tempnam().
|
||||||
|
|
||||||
2001-05-18 Pavel Roskin <proski@gnu.org>
|
2001-05-18 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,6 @@ redirect (vfs *me, char *name)
|
||||||
handle = mc_mkstemps (&cache, "sfs", NULL);
|
handle = mc_mkstemps (&cache, "sfs", NULL);
|
||||||
|
|
||||||
if (handle == -1) {
|
if (handle == -1) {
|
||||||
g_free (cache);
|
|
||||||
return "/SOMEONE_PLAYING_DIRTY_TMP_TRICKS_ON_US";
|
return "/SOMEONE_PLAYING_DIRTY_TMP_TRICKS_ON_US";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue