--- embedaddon/mtr/packet/packet.c 2019/10/21 14:25:31 1.1.1.1 +++ embedaddon/mtr/packet/packet.c 2021/03/17 00:07:30 1.1.1.2 @@ -11,14 +11,19 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" #include +#ifdef HAVE_ERROR_H +#include +#else +#include "portability/error.h" +#endif #include #include #include @@ -83,8 +88,7 @@ int main( */ init_net_state_privileged(&net_state); if (drop_elevated_permissions()) { - perror("Unable to drop elevated permissions"); - exit(EXIT_FAILURE); + error(EXIT_FAILURE, errno, "Unable to drop elevated permissions"); } init_net_state(&net_state);