Problem with csuite change password routine

Date: Mon, 17 Feb 1997 23:03:56 -0400
From: David Trueman <david@cs.dal.ca>
To: priebe@renfrew.edu.on.ca
cc: csuite-tech@chebucto.ns.ca
Precedence: bulk

next message in archive
no next message in thread
previous message in archive
previous message in thread
Index of Subjects

Index of Subjects

I guess that something got line-wrapped.

Change the section like this

	while (getline <pwdfile >0) {
            if ($1 in old && old[$1] == $2) {
                print "CMD:p:" $1 ":" new[$1]
>"/csuite/private/passwd/pw.23285"                deletes = deletes " " $1
                delete old[$1]
            }
        }

to this

	while (getline <pwdfile >0) {
            if ($1 in old && old[$1] == $2) {
                print "CMD:p:" $1 ":" new[$1] >"/csuite/private/passwd/pw.23285"
                deletes = deletes " " $1
                delete old[$1]
            }
        }

that is, the >"..." must go on the end of the print line and the 
deletes = deletes " " $1 must go on a separate line.  See if that gets you
any furhter.


  David Trueman,
    Systems Manager, Dalhousie Math, Stats and Computing Science
    Technical Chair, Chebucto Community Net



next message in archive
no next message in thread
previous message in archive
previous message in thread
Index of Subjects