https://bugs.documentfoundation.org/show_bug.cgi?id=127648
--- Comment #30 from Theofilos Intzoglou <[email protected]> ---
(In reply to Stephan Bergmann from comment #29)
> (In reply to Theofilos Intzoglou from comment #27)
> > int main(void) {
> > int fd;
> > struct stat statbuf;
> > int res;
> > char buf[4096];
> >
> > fd = openat(AT_FDCWD, "/mnt/disk/cv.doc", O_RDONLY);
> > if (fd == -1)
> > printerr();
> >
> > res = fstat(fd, &statbuf);
> > if (res == -1)
> > printerr();
> > printf("st_mode=%d\nst_size=%ld\n", statbuf.st_mode, statbuf.st_size);
> > res = pread64(fd, &buf, 4096, 0);
> > printf("%d\n", res);
> > close(fd);
> > exit(0);
> > }
>
> The return type of pread64 is ssize_t, not int.
Indeed but it gives the same result. Anyway I think that this bug is a big deal
for many offices as it renders libreoffice nearly unusable if you work with
multiple files opened at once. One mistake and libreoffice crashes leaving some
of its processes open which makes it difficult for people without much
experience with dealing with processes in a state that libreoffice can't be
started again. I am not the one to decide but if a simple check could solve
this problem in libreoffice while we wait for the kernel module to be fixed
then it would be much appreciated. Thank you for your time spend investigating
this.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs