[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] Re: [PATCH] traceroute: Remove geteuid test.
From: |
Mats Erik Andersson |
Subject: |
[bug-inetutils] Re: [PATCH] traceroute: Remove geteuid test. |
Date: |
Tue, 25 Jan 2011 14:31:59 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
tisdag den 25 januari 2011 klockan 13:06 skrev Simon Josefsson detta:
> Mats Erik Andersson <address@hidden> writes:
>
> > - if (geteuid () != 0)
> > - error (EXIT_FAILURE, EPERM, "insufficient permissions");
>
> How does the error message look when there is insufficient permission
> with that patch applied? Will the error message be cryptic?
Identical messages with '-Mudp' and '-Micmp':
GNU/Linux, GNU/kFreeBSD, FreeBSD issue EPERM:
$ ./src/traceroute -Micmp ftp.sunet.se
traceroute to ftp.sunet.se (194.71.11.69), 64 hops max
./src/traceroute: socket: Operation not permitted
OpenBSD issues EACCES:
$ ./src/traceroute -Micmp ftp.sunet.se
traceroute to ftp.sunet.se (194.71.11.69), 64 hops max
./src/traceroute: socket: Permission denied
The resulting message is the native statement in each system
for the failure to create a raw socket.
Regards,
Mats