← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 622179] [NEW] The "suspicious" errors don't give sufficient information

 

Public bug reported:

Binary package hint: xorg

Package xorg, version 1:7.5+5ubuntu1 on 10.04 is leaving error messages
in log files, e.g.

    X: /tmp/.X11-unix has suspicious mode (not 1777) or is not a
directory, aborting.

They're from debian/local/xserver-wrapper.c.

    if ((statbuf.st_uid != 0) || (statbuf.st_gid != 0)) {
      (void) fprintf(stderr, "X: %s has suspicious ownership (not root:root), "
                     "aborting.\n", X_SOCKET_DIR);
      exit(1);
    }

    if (statbuf.st_mode != (S_IFDIR | X_SOCKET_DIR_MODE)) {
      (void) fprintf(stderr, "X: %s has suspicious mode (not %o) or is not a "
                     "directory, aborting.\n", X_SOCKET_DIR, X_SOCKET_DIR_MODE);
      exit(1);
    }

In both cases it would help a lot, given the number of times these 
errors appear on Google, if the message included what the unexpected
value(s) were, e.g.

    X: /tmp/.X11-unix has suspicious mode, 01755 is not 01777, aborting.
    X: /tmp/.X11-unix has suspicious ownership, 1000:0 is not 0:0, aborting.

(If the `%o' were `%#o' too then the error would make clear the numbers are 
octal.)

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
The "suspicious" errors don't give sufficient information
https://bugs.launchpad.net/bugs/622179
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in ubuntu.



Follow ups

References