*** This bug is a duplicate of bug 1751005 ***
    https://bugs.launchpad.net/bugs/1751005

More info, even if i have ~/.config on root partition, I cannot open
files from the big one. strace shows this:

// on root partition, it works

[pid 28522] openat(AT_FDCWD, "/home/horape-/gastos.ods", O_RDWR|O_EXCL)
= 26

// on /disco2 partition, it fails

[pid 28240] openat(AT_FDCWD, "/disco2/home/horape/gastos.ods",
O_RDWR|O_EXCL) = -1 EACCES (Permission denied)

open(2) says:

In general, the behavior of O_EXCL is undefined if it is used without
O_CREAT.  There is one exception: on Linux 2.6 and later, O_EXCL can be
used without O_CREAT if pathname refers to a block device.  If the block
device is in use by the system (e.g., mounted), open() fails with the
error EBUSY.

So, O_RDWR|O_EXCL seems to make no sense. What is it trying to do?

Thanks!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1752496

Title:
  libreoffice fails when home on second partition

Status in libreoffice package in Ubuntu:
  New

Bug description:
  After upgrading from 17.04 to 17.10 libreoffice stopped working saying
  access rights were wrong. After some trying i discovered it is related
  to the partition my home directory is.

  To replicate:

  root@horape-S-T-D:~# adduser test1 --home /home/test1
  Adding user `test1' ...

  root@horape-S-T-D:~# su - test1
  test1@horape-S-T-D:~$ libreoffice 

  It works!

  root@horape-S-T-D:~# adduser test2 --home /disco2/home/test2
  ...
  root@horape-S-T-D:~# su - test2
  test2@horape-S-T-D:~$ libreoffice 

  It fails with Fatal Error as shown in the screenshot.

  horape@horape-S-T-D:~$ mount
  /dev/sda2 on /disco2 type ext4 (rw,relatime,errors=remount-ro,data=ordered)
  /dev/sdb1 on / type ext4 (rw,noatime,errors=remount-ro,data=ordered)

  horape@horape-S-T-D:~$ lsb_release -rd
  Description:    Ubuntu 17.10
  Release:        17.10

  horape@horape-S-T-D:~$ apt-cache policy libreoffice
  libreoffice:
    Installed: 1:5.4.5-0ubuntu0.17.10.1
    Candidate: 1:5.4.5-0ubuntu0.17.10.1
    Version table:
   *** 1:5.4.5-0ubuntu0.17.10.1 500
          500 http://ar.archive.ubuntu.com/ubuntu artful-updates/universe amd64 
Packages
          500 http://security.ubuntu.com/ubuntu artful-security/universe amd64 
Packages
          100 /var/lib/dpkg/status
       1:5.4.1-0ubuntu1 500
          500 http://ar.archive.ubuntu.com/ubuntu artful/universe amd64 Packages

  
  Thanks!

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: libreoffice 1:5.4.5-0ubuntu0.17.10.1
  ProcVersionSignature: Ubuntu 4.13.0-36.40-generic 4.13.13
  Uname: Linux 4.13.0-36-generic x86_64
  ApportVersion: 2.20.7-0ubuntu3.7
  Architecture: amd64
  CurrentDesktop: LXDE
  Date: Thu Mar  1 02:16:01 2018
  InstallationDate: Installed on 2017-04-15 (319 days ago)
  InstallationMedia: Lubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
  SourcePackage: libreoffice
  UpgradeStatus: Upgraded to artful on 2018-02-26 (2 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1752496/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to