* sfs.c (redirect): Don't free the filename after failed

mc_mkstemps() - it's not needed anymore.
This commit is contained in:
Pavel Roskin 2001-05-22 07:11:32 +00:00
parent a13c1d1928
commit 112b99950e
2 changed files with 11 additions and 7 deletions

View File

@ -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>
* 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.
(vfs_s_retrieve_file): Use mc_mkstemps().
(g_tempnam): Remove.
* vfs/extfs.c (extfs_open): Use mc_mkstemps().
* vfs/sfs.c (redirect): Likewise.
* vfs/shared_ftp_fish.c (_get_file_entry): Likewise.
* extfs.c (extfs_open): Use mc_mkstemps().
* sfs.c (redirect): Likewise.
* shared_ftp_fish.c (_get_file_entry): Likewise.
(retrieve_file): Likewise.
* vfs/vfs.c (mc_def_getlocalcopy): Likewise.
* vfs/xdirentry.h: Remove declaration of g_tempnam().
* vfs.c (mc_def_getlocalcopy): Likewise.
* xdirentry.h: Remove declaration of g_tempnam().
2001-05-18 Pavel Roskin <proski@gnu.org>

View File

@ -129,7 +129,6 @@ redirect (vfs *me, char *name)
handle = mc_mkstemps (&cache, "sfs", NULL);
if (handle == -1) {
g_free (cache);
return "/SOMEONE_PLAYING_DIRTY_TMP_TRICKS_ON_US";
}