diff options
author | mbr <mbr@FreeBSD.org> | 2002-12-16 22:24:26 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2002-12-16 22:24:26 +0000 |
commit | d975ae88c1d27ae949bace4ebe9916bc7be8afbf (patch) | |
tree | 1c9982dd57f64d9d27d246e74bbbce9267211200 /lib/libc/rpc/getnetconfig.c | |
parent | 08b76459f3f8f388a66abdc41491604856d7b9ef (diff) | |
download | FreeBSD-src-d975ae88c1d27ae949bace4ebe9916bc7be8afbf.zip FreeBSD-src-d975ae88c1d27ae949bace4ebe9916bc7be8afbf.tar.gz |
Change the name for the local unix-socket based protocol
from "unix" back to "local". Add some compat stuff so both
ways work for some time.
Reviewed by: phk
Approved by: imp (UPDATING)
Requested by: iedowse, lukem@netbsd.org
Diffstat (limited to 'lib/libc/rpc/getnetconfig.c')
-rw-r--r-- | lib/libc/rpc/getnetconfig.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libc/rpc/getnetconfig.c b/lib/libc/rpc/getnetconfig.c index d959687..3700850 100644 --- a/lib/libc/rpc/getnetconfig.c +++ b/lib/libc/rpc/getnetconfig.c @@ -418,6 +418,18 @@ getnetconfigent(netid) return (NULL); } + if (strcmp(netid, "unix") == 0) { + fprintf(stderr, "The local transport is called \"unix\" "); + fprintf(stderr, "in /etc/netconfig.\n"); + fprintf(stderr, "Please change this to \"local\" manually "); + fprintf(stderr, "or run mergemaster(8).\n"); + fprintf(stderr, "See UPDATING entry 20021216 for details.\n"); + fprintf(stderr, "Continuing in 10 seconds\n\n"); + fprintf(stderr, "This warning will be removed 20030301\n"); + sleep(10); + + } + /* * Look up table if the entries have already been read and parsed in * getnetconfig(), then copy this entry into a buffer and return it. |