Path: utzoo!yunexus!maccs!dan From: dan@maccs.dcss.mcmaster.ca (Dan Trottier) Newsgroups: ont.uucp Subject: Smail 2.5 patch Message-ID: <255EC962.473@maccs.dcss.mcmaster.ca> Date: 13 Nov 89 14:02:10 GMT Article-I.D.: maccs.255EC962.473 Reply-To: dan@maccs.dcss.mcmaster.ca (Dan Trottier) Distribution: ont Organization: McMaster University, Hamilton, Ontario Lines: 57 This is an unofficial patch to smail 2.5. It allows smail to try the hostname as entered before trying any conversions. Example: old smail: host.sub.domain try: .host.sub.domain try: host.sub.domain try: .sub.domain try: sub.domain etc new smail: host.sub.domain try: host.sub.domain \____ These two have been reversed try: .host.sub.domain / try: .sub.domain <-- from this point down the behaviour try: sub.domain is the same. etc I've been running this for about 8 months without any problems. I cannot guarantee that you will have the same results nor will take responsibility for any loss mail that results from applying this patch. *** old_resolve.c Wed May 24 09:27:54 1989 --- resolve.c Wed May 24 09:26:44 1989 *************** *** 238,246 **** */ for(step = 0; (step < domains); step++) { ! if((getpath(domainv[step]-1, path, cost) == EX_OK) /* w/ dot */ ! || (getpath(domainv[step] , path, cost) == EX_OK))/* no dot */ break; } if(step == domains) { --- 238,249 ---- */ for(step = 0; (step < domains); step++) { ! if( (step != 0) ! && (((getpath(domainv[step]-1, path, cost) == EX_OK) /* w/ dot */ ! || (getpath(domainv[step] , path, cost) == EX_OK))))/* no dot */ break; + else if (getpath(domainv[step], path, cost) == EX_OK) /* no dot */ + break; } if(step == domains) { --- end --- -- Dan Trottier dan@maccs.dcss.McMaster.CA Dept of Computer Science ...!uunet!utai!utgpu!maccs!dan McMaster University (416) 525-9140 x3444