Re: saned check_hosts() frobnication

David Mosberger-Tang (David.Mosberger@acm.org)
Thu, 11 Sep 1997 21:06:43 -0700

>>>>> On Thu, 11 Sep 1997 13:58:41 +0200 (METDST), Per Harald Myrvang <Per.Harald.Myrvang@cc.uit.no> said:

Per> I've just spent 2 hours trying to scan over the net (using
Per> sane-0.63), only to fill syslog with "rejected" messages.

Per> Then, after much gnashing of teeth, I discovered that, in
Per> frontend/saned.c, in check_host(), one does two strcmp(3) to
Per> check the connecting party's hostname to those in
Per> saned.conf. These should really be strcasecmp(3)s, since
Per> DNS-entries are case-insensitive (and yes, that's why I
Per> couldn't get it to work before).

I'm sorry you lost time because of this. It _is_ documented in
saned(1) though. I think the authentication code comes pretty much
straight from lpd. There are certainly arguments _for_ making this
check case-sensitive (it's not a hostname that's typed by a user), but
I don't feel strongly either way.

Per> And now for some good news: I got the Nikon LS-1000 to scan at
Per> 300 and 2700 dpi using Didier's code! Hurrah! But there are
Per> still quite a lot of work left...

Good news indeed! Keep up the good work!

--david

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com