Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ukma!gatech!hubcap!ncrcae!ncrlnk!uunet!mcvax!hp4nl!ruuinf!edwin From: edwin@ruuinf.UUCP (Edwin Kremer) Newsgroups: comp.os.minix Subject: bug in login.c (solved) Atari-ST Keywords: login, strcpy, ATARI-ST V1.1 Message-ID: <947@ruuinf.UUCP> Date: 3 Jan 89 08:09:46 GMT Organization: Univ of Utrecht, Dept of CS Lines: 18 Hello, a happy newyear to all of you out there.... I bought MINIX for the Atari-ST some time ago and noticed login.c not setting the HOME environment variable at all (which reminds me of one of those very old fortune cookies "You can't go home unless you set $HOME"). The bug is in the 'strcpy' just before execing the shell; the correct synopsis for strcpy is 'strcpy(dest, source)' NOT 'strcpy(source,dest)' !! Well, just exchange both arguments to strcpy and everything is just fine. --[ Edwin ]-- -- Edwin Kremer, Department of Computer Science, University of Utrecht Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands Phone: +31-30-534104 | UUCP : ...!hp4nl!ruuinf!edwin "I speak for myself...." | Future: edwin@cs.ruu.nl