Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Dec 2024 20:47:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 270404] comsat is willing to try to read and display any file
Message-ID:  <bug-270404-227-6qplI5X80o@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-270404-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-270404-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270404

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |In Progress

--- Comment #6 from Ed Maste <emaste@freebsd.org> ---
We should probably use NetBSD's approach - ignore the path in a comsat mess=
age,
unless it is the system path.

commit 4c4a0e2830a28ffdc555143b8ea45f2b70397aa4
Author: atatat <atatat@NetBSD.org>
Date:   Fri Mar 16 21:39:08 2001 +0000

    Use strtol() instead of atoi() for reading the number out of the
    datagram that we received, which leads to easier support for
    (ignoring) the procmail messages that specify the folder to which
    the message was delivered.

    When reading the mailbox, if we encounter a "From " line, we should
    exit().  This can occur if there are a lot of rapidly arriving, yet
    short messages.

Comment from NetBSD comsat.c:
               /*
                * Procmail sends messages to comsat with a trailing colon
                * and a pathname to the folder where the new message was
                * deposited.  Since we can't reliably open only regular
                * files, we need to ignore these.  With one exception:
                * if it mentions the user's system mailbox.
                */

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270404-227-6qplI5X80o>