summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 691a876872..8c64174401 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -599,9 +599,6 @@ int open_terminal(const char *name, int mode) {
c++;
}
- if (fd < 0)
- return -errno;
-
r = isatty(fd);
if (r < 0) {
safe_close(fd);
@@ -886,7 +883,6 @@ int fopen_temporary(const char *path, FILE **_f, char **_temp_path) {
return 0;
}
-
int get_user_creds(
const char **username,
uid_t *uid, gid_t *gid,