🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.mail.sendmail
1 messages
1 total messages Started by Robert Evans Thu, 26 Jan 1989 16:51
sendmail2.1 on Ultrix2.3
#3128
Author: Robert Evans
Date: Thu, 26 Jan 1989 16:51
76 lines
2640 bytes
There are two features in the uk-sendmail2.3 config suite that are not
portable to Ultrix 2.3.

First, the sed script in Config which transforms the configuration file
doesn't work.  It results in a truncated configuration file which may
contain blank lines.  The problem is the test-and-branch to label "repeat".
This ought to occur only if the substitution above the test has taken
place but  on Ultrix 2.3 it seems to occur as a result of the N command
changing the pattern space.   The way around this is to have an extra
test-and-brach after the N command branching to the next line.  This
resets sed's idea of when the last test or substition was done.  So
        : repeat
        N
        s/\n[	 ][	 ]*//
        t repeat
becomes
        : repeat
        N
        t cont
        : cont
        s/\n[	 ][	 ]*//
        t repeat

Here's a context diff:
---------------cut here---------------
*** Config.OLD	Thu Jan 26 16:26:16 1989
--- Config	Thu Jan 26 16:27:10 1989
***************
*** 33,38 ****
--- 33,40 ----
  /^$/d
  : repeat
  N
+ t cont
+ : cont
  s/\n[	 ][	 ]*//
  t repeat
  P
---------------cut here---------------

The second problem is with Chnbuild.  This shell script uses the command
"shift 2" to shift two arguments.   This doesn't work on Ultrix 2.3 and
must be replaced by "shift; shift".

Here's a diff for that:

---------------cut here---------------
*** Chnbuild.OLD	Thu Jan 26 16:28:25 1989
--- Chnbuild	Thu Jan 26 15:04:28 1989
***************
*** 375,381 ****
  		exit 1
  		;;
  	esac
! 	shift 2
  done
  
  #---------------------------------------
--- 375,381 ----
  		exit 1
  		;;
  	esac
! 	shift ; shift
  done
  
  #---------------------------------------
---------------cut here---------------

These modified scripts work on SunOS 4.0 (as did the originals) as well
as Ultrix 2.3.


-- 
  Robert Evans, Dept of Computing Maths, University of Wales College of Cardiff,
  PO Box 916, Cardiff, Wales, UK, CF2 4YN.  Tel: +44 (0)222 874000 x 5518
  E-mail: R.Evans@computing-maths.cardiff.ac.uk     UUCP: R.Evans@cf-cm.UUCP
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads