Subject: Re: /etc/daily bug
To: None <rmk@rmkhome.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-users
Date: 04/12/2002 02:32:07
--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Thu, Apr 11, 2002 at 06:19:48PM -0600, Rick Kelly wrote:
> I was wondering about that myself. Does NetBSD really use a different
> mail than OpenBSD?

OpenBSD uses the same /usr/bin/mail as NetBSD does.  this bug was
mistakenly reintroduced into OpenBSD 2.9 by one developer.  NetBSD is
not affected by this bug, see /usr/src/usr.bin/mail/collect.c:

    if (linebuf[0] !=3D escape || value("interactive") =3D=3D NULL ||
        lastlong) {

check for interactive mode was removed from OpenBSD (and again added
now after this incident).

you can see:

 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mail/collect.c?rev=3D1.2=
0&content-type=3Dtext/x-cvsweb-markup

especially:

  o tilde commands work regardless of interactive mode.

> The "~!command" is an interactive thing, but someone could use expect in a
> cron script.

it doesn't work in a script unless -I is used.

regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--DocE+STaALJfprDB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8tisGWc63C347cOIRAjFOAKCWvX+wKjB0oQJnNunG3IZUJ6KzKQCfRvOu
hWy/4yMsSNXwAcfd/F+drW4=
=Cv2D
-----END PGP SIGNATURE-----

--DocE+STaALJfprDB--