mirror of https://github.com/MidnightCommander/mc
* smbfs.c (smbfs_close): Return -1 if cli->outbuf is NULL and
set my_errno to EINVAL - temporary fix. Reformat function.
This commit is contained in:
parent
7e0d162f5e
commit
47f1a6a51b
|
@ -1,3 +1,8 @@
|
|||
2002-09-02 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* smbfs.c (smbfs_close): Return -1 if cli->outbuf is NULL and
|
||||
set my_errno to EINVAL - temporary fix. Reformat function.
|
||||
|
||||
2002-09-01 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* samba/param/loadparm.c: Add global_scope variable.
|
||||
|
|
20
vfs/smbfs.c
20
vfs/smbfs.c
|
@ -355,12 +355,22 @@ static int
|
|||
smbfs_close (void *data)
|
||||
{
|
||||
smbfs_handle *info = (smbfs_handle *) data;
|
||||
DEBUG(3, ("smbfs_close(fnum:%d)\n", info->fnum));
|
||||
/* if imlementing archive_level: add rname to smbfs_handle
|
||||
DEBUG (3, ("smbfs_close(fnum:%d)\n", info->fnum));
|
||||
|
||||
/* FIXME: Why too different cli have the same outbuf
|
||||
* if file is copied to share
|
||||
*/
|
||||
if (info->cli->outbuf == NULL) {
|
||||
my_errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
#if 0
|
||||
/* if imlementing archive_level: add rname to smbfs_handle */
|
||||
if (archive_level >= 2 && (inf->attr & aARCH)) {
|
||||
cli_setatr(info->cli, rname, info->attr & ~(uint16)aARCH, 0);
|
||||
} */
|
||||
return (cli_close(info->cli, info->fnum) == True) ? 0 : -1;
|
||||
cli_setatr (info->cli, rname, info->attr & ~(uint16) aARCH, 0);
|
||||
}
|
||||
#endif
|
||||
return (cli_close (info->cli, info->fnum) == True) ? 0 : -1;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue