ALT Linux repositórios
Group :: Sistema/Bibliotecas
RPM: libnet2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: libnet-1.1.2.1-alt-init.patch
Download
Download
--- libnet/src/libnet_init.c.orig 2004-03-16 21:40:59 +0300
+++ libnet/src/libnet_init.c 2004-09-05 15:04:13 +0400
@@ -44,14 +44,14 @@ libnet_init(int injection_type, char *de
{
libnet_t *l = NULL;
-#if !defined(__WIN32__)
+#if 0
if (getuid() && geteuid())
{
snprintf(err_buf, LIBNET_ERRBUF_SIZE,
"%s(): UID or EUID of 0 required\n", __func__);
goto bad;
}
-#else
+#elif defined(__WIN32__)
WSADATA wsaData;
if ((WSAStartup(0x0202, &wsaData)) != 0)