Skip to content

Commit e900df1

Browse files
author
Ben Hillis
committed
Do not update mode of .X11-unix directory.
1 parent d14b392 commit e900df1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

WSLGd/main.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ constexpr auto c_versionFile = "/etc/versions.txt";
2323
constexpr auto c_versionMount = SHARE_PATH "/versions.txt";
2424
constexpr auto c_shareDocsDir = "/usr/share/doc";
2525
constexpr auto c_shareDocsMount = SHARE_PATH "/doc";
26-
constexpr auto c_x11RuntimeDir = SHARE_PATH "/.X11-unix";
2726
constexpr auto c_xdgRuntimeDir = SHARE_PATH "/runtime-dir";
2827
constexpr auto c_stdErrLogFile = SHARE_PATH "/stderr.log";
2928

@@ -289,9 +288,6 @@ try {
289288
THROW_LAST_ERROR_IF(chown(c_dbusDir, passwordEntry->pw_uid, passwordEntry->pw_gid) < 0);
290289
THROW_LAST_ERROR_IF(chmod(c_dbusDir, 0777) < 0);
291290

292-
std::filesystem::create_directories(c_x11RuntimeDir);
293-
THROW_LAST_ERROR_IF(chmod(c_x11RuntimeDir, 0777) < 0);
294-
295291
std::filesystem::create_directories(c_xdgRuntimeDir);
296292
THROW_LAST_ERROR_IF(chown(c_xdgRuntimeDir, passwordEntry->pw_uid, passwordEntry->pw_gid) < 0);
297293
THROW_LAST_ERROR_IF(chmod(c_xdgRuntimeDir, 0777) < 0);

0 commit comments

Comments
 (0)