if (ret < 0 && errno != EEXIST)
return log_error_errno(-errno, errno, "Failed to create console");
- ret = fchmod(console->pty, S_IXUSR | S_IXGRP);
+ ret = fchmod(console->pty, 0620);
if (ret < 0)
return log_error_errno(-errno, errno, "Failed to set mode \"0%o\" to \"%s\"", S_IXUSR | S_IXGRP, console->name);
if (ret < 0 && errno != EEXIST)
return log_error_errno(-errno, errno, "Failed to create console");
- ret = fchmod(console->pty, S_IXUSR | S_IXGRP);
+ ret = fchmod(console->pty, 0620);
if (ret < 0)
return log_error_errno(-errno, errno, "Failed to set mode \"0%o\" to \"%s\"", S_IXUSR | S_IXGRP, console->name);