Newsgroups: comp.sys.hp
Path: utzoo!utgpu!watserv1!sunee!maxwell!gordon
From: gordon@maxwell.waterloo.edu (Gordon R. Strachan)
Subject: Re: Canceling remote print jobs
Message-ID: <1991May15.195619.19362@sunee.waterloo.edu>
Sender: news@sunee.waterloo.edu
Organization: University of Waterloo
References: <1991May14.192739.546@sunee.waterloo.edu> <1991May15.142107.25132@mack.uit.no>
Date: Wed, 15 May 1991 19:56:19 GMT
Lines: 27

In article <1991May15.142107.25132@mack.uit.no> gaute@stud.cs.uit.no (Gaute Nessan) writes:
>In article <1991May14.192739.546@sunee.waterloo.edu> gordon@maxwell.waterloo.edu (Gordon R. Strachan) writes:
>>...  The user on the sun then attempts to
>>cancel the print job.  If he types lprm -Pprinter, nothing happens.  If he
>>types lprm -Pprinter userid or lprm -Pprinter jobID then the following error
>>is retured
>>
>>Maxwell: cfA034bbcr: Permission denied
>
>The problem is that the rlpdaemon uses gethostbyaddr() to get the hostname
>of the peer host. gethostbyaddr returns a domain qualified name (aaa.bbb.edu).
>That name is different from the hostname in the spooling queue, and you get
>the error message "Permission denied".  I have a patched version available
>by anonymous ftp to hpserv1.cs.uit.no (HP/rlpdaemon.Z).

After I posted this I thought about it some more and I was wondering if that
was the problem (I had noticed that the rlpdaemon log was using both unqualified
and fully qualified domain names).  Thank you for the responce, I will FTP the
code.  I have a dream that some day Unix will actually figure out domain names
and will understand that they can be qualified or not and still be the same
host.  Then we won't have this problem with every other program.

>
>Gaute
>-- 

Gordon
