[net.sources.bugs] MSG strchr problem

jarob@ucrmath.UUCP (Karl Bunch, System's Security Specialist) (03/19/86)

> Does anyone have the code for the strchr routine in the Msg program?
> 
> This is the only thing between me and a screen full of mail!
> 
> 
> Bill

I had the same problem. Try:

#define strchr=index

in hdrs/msg.h

And the recompile it again. The strchr function is the same in 
function as index.

--Karl

wcs@ho95e.UUCP (x0705) (03/19/86)

In article <2403@burdvax.UUCP> wpl@burdvax.UUCP (William P Loftus) writes:
>Does anyone have the code for the strchr routine in the Msg program?
>This is the only thing between me and a screen full of mail!

#define strchr index
#define strrchr rindex

Berkeley UNIX uses index/rindex; AT&T System III and later use str*chr.
This indicates that the second line of your posting may be optimistic;
I haven't yet unshar_ed the MSG stuff.
			Good luck,
-- 
# Bill Stewart, AT&T Bell Labs 2G-202, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs

campbell@maynard.UUCP (Larry Campbell) (03/19/86)

> Does anyone have the code for the strchr routine in the Msg program?

strchr == index, so:

	CFLAGS=-Dstrchr=index

in your makefile should do the trick.
-- 
Larry Campbell                                 The Boston Software Works, Inc.
ARPA: maynard.UUCP:campbell@harvard.ARPA       120 Fulton Street
UUCP: {harvard,cbosgd}!wjh12!maynard!campbell  Boston MA 02109

randy@chinet.UUCP (Randy Suess) (03/20/86)

In article <568@ho95e.UUCP> wcs@ho95e.UUCP (Bill Stewart 1-201-949-0705 ihnp4!ho95c!wcs HO 2G202) writes:
>
>This indicates that the second line of your posting may be optimistic;
>I haven't yet unshar_ed the MSG stuff.
>			Good luck,
>-- 
># Bill Stewart, AT&T Bell Labs 2G-202, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs
	The problem I am having with msg on a 3b2/300 is that it does not leave
the users mail in /usr/mail guid mail.  It sets it to the uid of the mailee.
/bin/mail and mailx want it to be guid mail.  I changed the group of msg
to mail and did a setguid on it, but that didn't help.  Anyone got it running
on a 3b2?
Thanks.

-- 
.. that's the biz, sweetheart...
Randy Suess
chinet - Public Access UN*X
(312) 545 7535 (h) (312) 283 0559 (system)
..!ihnp4!chinet!randy