diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2012-08-24 17:56:53 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2012-08-24 17:56:53 +0000 |
commit | 508279c94f15510d05c92a7694533c9a962d8585 (patch) | |
tree | 8990dfd898c20ca778c9ae4812e0e6da0cd438a7 /strace.c | |
parent | f04b5de5a5a743f0b3ca0895379dd2ba702ea174 (diff) | |
download | strace-508279c94f15510d05c92a7694533c9a962d8585.tar.gz strace-508279c94f15510d05c92a7694533c9a962d8585.tar.bz2 strace-508279c94f15510d05c92a7694533c9a962d8585.tar.xz |
Always check setreuid return code
* strace.c (startup_child): Check setreuid return code.
Diffstat (limited to 'strace.c')
-rw-r--r-- | strace.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1086,7 +1086,9 @@ startup_child(char **argv) } } else if (geteuid() != 0) - setreuid(run_uid, run_uid); + if (setreuid(run_uid, run_uid) < 0) { + perror_msg_and_die("setreuid"); + } if (!daemonized_tracer) { /* |