projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f617cd
)
execute: fix type of open_terminal_as() flags parameter
author
Lennart Poettering
<lennart@poettering.net>
Fri, 27 Oct 2017 12:32:22 +0000
(14:32 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 17 Nov 2017 10:13:44 +0000
(11:13 +0100)
It's the flags parameter we propagate here, not the mode parameter,
hence let's name it properly, and use the right type.
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index
f7243f3
..
de6a921
100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-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;