[Xfce-bugs] [Bug 724] New: xfce fails on automounted (NFS) home-directories.

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Jan 19 17:15:08 CET 2005


http://bugzilla.xfce.org/show_bug.cgi?id=724

           Summary: xfce fails on automounted (NFS) home-directories.
           Product: Xfce
           Version: 4.2.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: Medium
         Component: general
        AssignedTo: xfce-bugs at xfce.org
        ReportedBy: joel at it.uu.se


When a user:s home-directory is nfs-mounted using indirect maps in automount,
xfce4 will not start.

The user will get a lot of errors like this ...

(xfce4-session:494): libxfce4util-WARNING **: Invalid XDG_CACHE_HOME directory
`/home/ittest1/.cache', program may behave incorrectly.

The problem lies in xfce_mkdirhier() located in
libxfce4util-4.2.0/libxfce4util/xfce-fileutils.c

In the above warning xfce_mkdirhier() tries to create the entire hierarchy of
the directory /home/ittest1/.cache, the first (/home) fails with EEXIST and is
ignored, the second (/home/ittest1) also fails but it returns ENOSYS since /home
is a indirect automount map. xfce_mkdirhier() therefor fails to create any
directories under $HOME.

The fix is either to ignore ENOSYS or only to call mkdir() if the directory does
not already exist.

Output from truss (the relevant lines).
695:    umask(0)                                        = 022
695:    umask(022)                                      = 0
695:    mkdir("/home", 0777)                            Err#17 EEXIST
695:    xstat(2, "/home", 0x08047200)                   = 0
695:    mkdir("/home/ittest1", 0777)                    Err#89 ENOSYS
695:    umask(022)                                      = 022
695:    getpid()                                        = 695 [672]
695:    write(2, "\n ( x f c e 4 - s e s s".., 141)     = 141

 

Reproducible: Always
Steps to Reproduce:
1. 
2. 
3.

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Xfce-bugs mailing list