From 8c0283472139212aab685b42f85142a9148fc7ef Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Mon, 13 Oct 2014 09:00:14 -0400 Subject: src/shared/util.c: remove unneeded error check, following upstream Signed-off-by: Anthony G. Basile --- src/shared/util.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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, -- cgit v1.2.3-54-g00ecf