Couple of patches

Andrew V. Samoilov andrew at email.zp.ua
Fri Nov 26 11:21:45 UTC 2004


Hello,
> 
> On Thu, 25 Nov 2004, Pavel Tsekov wrote:
> 
> > Hello,
> >
> > I don't like the second hunk of direntry.c.patch.
> >
> > @@ -955,7 +957,7 @@ vfs_s_retrieve_file (struct vfs_class *m
> >         if (got_interrupt ())
> >             goto error_1;
> >
> > -       if (write (handle, buffer, n) < 0) {
> > +       if (write (handle, buffer, n) != n) {
> >             me->verrno = errno;
> >             goto error_1;
> >         }
> >
> > `errno' is not set if write () returns a positive value i.e.
> > less bytes written than in the buffer.

Well, new incarnations with random me->verrno.

-- 
Regards,
Andrew V. Samoilov.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: direntry.c.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20041126/874285f8/attachment.ksh>


More information about the mc-devel mailing list