- Revision v3.1 ALPHA
* -g option (generate): exclude network and broadcast address for cidr
ranges (idea by Eric Brander)
+ * do not explicitely check if running as root, to make it possible to
+ install fping with linux capabilities instead of making it setuid
+ (setcap cap_net_raw+ep fping)
* ANSI C (C89) compiler now a requirement
* portability fixes
/* check if we are root */
- if( geteuid() )
- {
- fprintf( stderr,
- "This program can only be run by root, or it must be setuid root.\n" );
-
- exit( 3 );
-
- }/* IF */
-
/* confirm that ICMP is available on this machine */
#ifndef IPV6
if( ( proto = getprotobyname( "icmp" ) ) == NULL )
#endif
if( s < 0 )
- errno_crash_and_burn( "can't create raw socket" );
+ errno_crash_and_burn( "can't create raw socket (must run as root?)" );
#ifdef IPV6
/*