Small bugs...

This commit is contained in:
Pavel Machek 1998-10-15 15:18:12 +00:00
parent 269500c1f5
commit feef616e63
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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);

View File

@ -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;