Skip to content

Commit

Permalink
Do not update mode of .X11-unix directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Hillis committed Mar 6, 2025
1 parent d14b392 commit e900df1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions WSLGd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ constexpr auto c_versionFile = "/etc/versions.txt";
constexpr auto c_versionMount = SHARE_PATH "/versions.txt";
constexpr auto c_shareDocsDir = "/usr/share/doc";
constexpr auto c_shareDocsMount = SHARE_PATH "/doc";
constexpr auto c_x11RuntimeDir = SHARE_PATH "/.X11-unix";
constexpr auto c_xdgRuntimeDir = SHARE_PATH "/runtime-dir";
constexpr auto c_stdErrLogFile = SHARE_PATH "/stderr.log";

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

std::filesystem::create_directories(c_x11RuntimeDir);
THROW_LAST_ERROR_IF(chmod(c_x11RuntimeDir, 0777) < 0);

std::filesystem::create_directories(c_xdgRuntimeDir);
THROW_LAST_ERROR_IF(chown(c_xdgRuntimeDir, passwordEntry->pw_uid, passwordEntry->pw_gid) < 0);
THROW_LAST_ERROR_IF(chmod(c_xdgRuntimeDir, 0777) < 0);
Expand Down

0 comments on commit e900df1

Please sign in to comment.