diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-10-13 09:00:14 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-10-13 09:00:21 -0400 |
commit | 8c0283472139212aab685b42f85142a9148fc7ef (patch) | |
tree | c33467d67b37becc5aceba9cd87a2af908266779 /src/shared | |
parent | 737d6ff89b534bf9e57309e06b982b614d05e9e3 (diff) |
src/shared/util.c: remove unneeded error check, following upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/util.c | 4 |
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, |