diff options
Diffstat (limited to 'usr.sbin/lpr/common_source/net.c')
-rw-r--r-- | usr.sbin/lpr/common_source/net.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/lpr/common_source/net.c b/usr.sbin/lpr/common_source/net.c index d5886f9..05c8085 100644 --- a/usr.sbin/lpr/common_source/net.c +++ b/usr.sbin/lpr/common_source/net.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: net.c,v 1.1 1997/12/02 20:45:22 wollman Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -160,6 +160,11 @@ checkremote(struct printer *pp) struct in_addr *localaddrs; int i, j, nlocaladdrs, ncommonaddrs; + if (!pp->rp_matches_local) { /* Remote printer doesn't match local */ + pp->remote = 1; + return NULL; + } + pp->remote = 0; /* assume printer is local */ if (pp->remote_host != NULL) { /* get the addresses of the local host */ |