Re: who does make XDG_CONFIG_HOME directory (with inappropriate permissions) ?

Daniel Lange <[email protected]> Sun, 2 Aug 2026 12:52:14 +0200
Newsgroups gmane.linux.debian.devel.general
Organization Debian
Message-ID <[email protected]>
Hi Jerome,

# set your environment vars:

export DEBUGINFOD_URLS="https://debuginfod.debian.net"
export XDG_CONFIG_HOME=/tmp/XDG_CONFIG_HOME  # in my case, you can place it elsewhere

gdb --args wxmaxima --version

# say yes to using debuginfod

# inside gdb:

>>> break mkdir

# say yes for future shared libs

# on the breakpoint, you'll see:

>>> bt full
#0  __GI___mkdir (path=0x555555fa17d0 "/tmp/XDG_CONFIG_HOME", mode=1792) at ../sysdeps/unix/sysv/linux/mkdir.c:28
#1  0x00007ffff6f13c0d in wxMkdir (dir=..., perm=perm@entry=1792) at ./src/common/filefn.cpp:1090
#2  0x0000555555776a2d in MyApp::OnInit (this=0x555555e65810) at ./src/main.cpp:225
#3  0x000055555577256b in wxAppConsoleBase::CallOnInit (this=<optimized out>) at /usr/include/wx-3.2/wx/app.h:93
#4  CommonMain () at ./src/main.cpp:86
#5  0x0000555555696a54 in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:159

So wxMkdir from wxWidgets is called with perm=1792 = 03400 (octal) ... which does not make sense.

https://github.com/wxMaxima-developers/wxmaxima/blob/6ab2273c0a40b65df584a360b14934fabd5d7643/src/main.cpp#L437

has

wxMkdir(dirName, 0x700);

with 0x700 (hex) = 03400 (octal).

Somebody confused the number systems.

Hope this helps.

Kind regards,
Daniel