mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
execute: fix type of open_terminal_as() flags parameter
It's the flags parameter we propagate here, not the mode parameter, hence let's name it properly, and use the right type.
This commit is contained in:
parent
9f617cd09f
commit
3a274a218d
@ -377,13 +377,13 @@ static int connect_logger_as(
|
||||
|
||||
return move_fd(fd, nfd, false);
|
||||
}
|
||||
static int open_terminal_as(const char *path, mode_t mode, int nfd) {
|
||||
static int open_terminal_as(const char *path, int flags, int nfd) {
|
||||
int fd;
|
||||
|
||||
assert(path);
|
||||
assert(nfd >= 0);
|
||||
|
||||
fd = open_terminal(path, mode | O_NOCTTY);
|
||||
fd = open_terminal(path, flags | O_NOCTTY);
|
||||
if (fd < 0)
|
||||
return fd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user