git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4968 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-10-04 10:35:57 +00:00
parent 3a45d61bf4
commit e8290c74f7

View file

@ -1062,6 +1062,12 @@ init_ports()
if (bind(udp_desc, (void*)&sa, sizeof(sa)) < 0)
{
fprintf(stderr, "Unable to bind address to UDP socket\n");
if (errno == EACCES)
{
fprintf(stderr, "You probably need to run gdomap as root,\n");
fprintf(stderr, "or run the nameserver on a non-standard\n");
fprintf(stderr, "port that does not require root privilege.\n");
}
exit(1);
}
@ -1099,6 +1105,12 @@ init_ports()
if (bind(tcp_desc, (void*)&sa, sizeof(sa)) < 0)
{
fprintf(stderr, "Unable to bind address to TCP socket\n");
if (errno == EACCES)
{
fprintf(stderr, "You probably need to run gdomap as root,\n");
fprintf(stderr, "or run the nameserver on a non-standard\n");
fprintf(stderr, "port that does not require root privilege.\n");
}
exit(1);
}
if (listen(tcp_desc, QUEBACKLOG) < 0)