mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
Small bugs...
This commit is contained in:
parent
269500c1f5
commit
feef616e63
@ -1,3 +1,7 @@
|
||||
Thu Oct 15 17:17:17 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
|
||||
|
||||
* shared_ftp_fish.c (s_write): stupid bug fixed
|
||||
|
||||
Tue Oct 13 00:22:52 1998 Pavel Machek <pavel@bug.ucw.cz>
|
||||
|
||||
* extfs/*: marked obvious security holes with FIXME: TMP RACE
|
||||
|
@ -1414,6 +1414,7 @@ linear_read (struct direntry *fe, void *buf, int len)
|
||||
my_errno = EIO;
|
||||
n=-1;
|
||||
}
|
||||
close (fe->data_sock);
|
||||
fe->data_sock = -1;
|
||||
}
|
||||
ERRNOR (errno, n);
|
||||
|
@ -527,13 +527,11 @@ static int s_read (void *data, char *buffer, int count)
|
||||
|
||||
static int s_write (void *data, char *buf, int nbyte)
|
||||
{
|
||||
struct filp *fp;
|
||||
struct filp *fp = data;
|
||||
int n;
|
||||
|
||||
if (fp->fe->linear_state)
|
||||
vfs_die ("You may not write to linear file");
|
||||
|
||||
fp = data;
|
||||
n = write (fp->local_handle, buf, nbyte);
|
||||
if (n < 0)
|
||||
my_errno = errno;
|
||||
|
Loading…
Reference in New Issue
Block a user