FAQ
Hi again,
I tried applying the security patch for 2.1.5 which is listed
on the website - but got a number of errors - can anyone outline the
procedure for implementing the patch please, whether it's by running
the patch or replacing lines of code within certain files - any
assistance would be appreciated.
For information, the system I am trying to update is OSX
10.3.8 with Mailman 2.1.5 & the developers tools installed. Many
thanks.
--

Bye for now, Terry Allen
___________________________________________________________________
hEARd

Postal Address:
hEARd, 26B Glenning Rd, Glenning Valley, NSW 2261, Australia
Internet -
WWW: http://heard.com.au http://itavservices.com
EMAIL: hmag at ozemail.com.au
Phone: Australia - 02 4388 1400 / International - + 61 2 43881400
Mobile: Australia - 04 28881400 / International - 61 4 28881400
-----------------------------------------------
Non profit promotion for new music - since 1994
-----------------------------------------------

Search Discussions

  • Brad Knowles at Mar 22, 2005 at 9:25 am

    At 8:09 PM +1100 2005-03-22, Terry Allen wrote:

    I tried applying the security patch for 2.1.5 which is listed on the
    website - but got a number of errors - can anyone outline the procedure
    for implementing the patch please, whether it's by running the patch
    or replacing lines of code within certain files - any assistance would
    be appreciated.
    You need to use the program "patch" to apply the patch as
    provided. Note that Python is sensitive to indentation and the use
    of tab characters versus spaces, so you can't just cut-n-paste what
    you see. You either need to make sure that the indentation perfectly
    matches what is present in the files being modified, or you need to
    use the program "patch" to do that for you.

    If you have stored the security patch in a file called
    "patchfile", and you have placed that file in the appropriate
    directory, it should be as simple as this:

    # patch < patchfile

    And the program should be able to figure out the rest by reading
    the patchfile and applying that to the code in the appropriate places.
    For information, the system I am trying to update is OSX 10.3.8 with
    Mailman 2.1.5 & the developers tools installed. Many thanks.
    At the command-line prompt, do "man patch" to see how this program works.

    --
    Brad Knowles, <brad at stop.mail-abuse.org>

    "Those who would give up essential Liberty, to purchase a little
    temporary Safety, deserve neither Liberty nor Safety."

    -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
    Assembly to the Governor, November 11, 1755

    SAGE member since 1995. See <http://www.sage.org/> for more info.
  • Terry Allen at Mar 22, 2005 at 8:37 pm

    At 8:09 PM +1100 2005-03-22, Terry Allen wrote:
    I tried applying the security patch for 2.1.5 which is listed on the
    website - but got a number of errors - can anyone outline the procedure
    for implementing the patch please, whether it's by running the patch
    or replacing lines of code within certain files - any assistance would
    be appreciated.
    You need to use the program "patch" to apply the patch as
    provided. Note that Python is sensitive to indentation and the use
    of tab characters versus spaces, so you can't just cut-n-paste what
    you see. You either need to make sure that the indentation
    perfectly matches what is present in the files being modified, or
    you need to use the program "patch" to do that for you.

    If you have stored the security patch in a file called
    "patchfile", and you have placed that file in the appropriate
    directory, it should be as simple as this:

    # patch < patchfile

    And the program should be able to figure out the rest by
    reading the patchfile and applying that to the code in the
    appropriate places.
    For information, the system I am trying to update is OSX 10.3.8 with
    Mailman 2.1.5 & the developers tools installed. Many thanks.
    At the command-line prompt, do "man patch" to see how this
    program works.
    Hi again,
    Thanks Brad - I should have outlined that I had already tried
    running patch on that .txt file - here's the problem I am getting:

    [server:mailman/mailman/cgi] root# patch < CAN-2005-0202.txt
    patching file private.py
    Reversed (or previously applied) patch detected! Assume -R? [n] n
    Apply anyway? [n] y
    Hunk #1 FAILED at 1.
    1 out of 2 hunks FAILED -- saving rejects to file private.py.rej
    [server:mailman/mailman/cgi] root#

    The output into the .rej file has only the comments at the
    start of private.py - I ran the patch 3 times but on the second time
    I answered Y on the reverse apply question, then the 3rd time, it ran
    without error. does this indicate to you that I have already applied
    the patch successfully?
    --

    Bye for now, Terry Allen
    ___________________________________________________________________
    hEARd

    Postal Address:
    hEARd, 26B Glenning Rd, Glenning Valley, NSW 2261, Australia
    Internet -
    WWW: http://heard.com.au http://itavservices.com
    EMAIL: hmag at ozemail.com.au
    Phone: Australia - 02 4388 1400 / International - + 61 2 43881400
    Mobile: Australia - 04 28881400 / International - 61 4 28881400
    -----------------------------------------------
    Non profit promotion for new music - since 1994
    -----------------------------------------------
  • Mark Sapiro at Mar 22, 2005 at 9:17 pm

    Terry Allen wrote:
    I should have outlined that I had already tried
    running patch on that .txt file - here's the problem I am getting:

    [server:mailman/mailman/cgi] root# patch < CAN-2005-0202.txt
    patching file private.py
    Reversed (or previously applied) patch detected! Assume -R? [n] n
    Apply anyway? [n] y
    Hunk #1 FAILED at 1.
    1 out of 2 hunks FAILED -- saving rejects to file private.py.rej
    [server:mailman/mailman/cgi] root#

    The output into the .rej file has only the comments at the
    start of private.py - I ran the patch 3 times but on the second time
    I answered Y on the reverse apply question, then the 3rd time, it ran
    without error. does this indicate to you that I have already applied
    the patch successfully?
    It looks like the first time, patch failed to apply the first hunk (the
    Copyright notice) because it had already been applied. The second
    time, answering Y to the 'reverse' question effectively removed the
    patch, and the third try successfully reapplied the patch.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Brad Knowles at Mar 22, 2005 at 9:28 pm

    At 7:37 AM +1100 2005-03-23, Terry Allen wrote:

    The output into the .rej file has only the comments at the start
    of private.py - I ran the patch 3 times but on the second time I
    answered Y on the reverse apply question, then the 3rd time, it
    ran without error. does this indicate to you that I have already
    applied the patch successfully?
    Hmm. Not sure. Have you compared the file being patched against
    what it used to be, and what was in the patch?

    --
    Brad Knowles, <brad at stop.mail-abuse.org>

    "Those who would give up essential Liberty, to purchase a little
    temporary Safety, deserve neither Liberty nor Safety."

    -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
    Assembly to the Governor, November 11, 1755

    SAGE member since 1995. See <http://www.sage.org/> for more info.
  • John Dennis at Mar 22, 2005 at 9:56 pm

    On Tue, 2005-03-22 at 22:28 +0100, Brad Knowles wrote:
    At 7:37 AM +1100 2005-03-23, Terry Allen wrote:

    The output into the .rej file has only the comments at the start
    of private.py - I ran the patch 3 times but on the second time I
    answered Y on the reverse apply question, then the 3rd time, it
    ran without error. does this indicate to you that I have already
    applied the patch successfully?
    Hmm. Not sure. Have you compared the file being patched against
    what it used to be, and what was in the patch?
    Here's a hint. The change is only a couple of lines, if you're having
    trouble applying the patch open up a text editor and manually
    cut-n-paste the changes. Or download the 2.1.6 beta and copy private.py
    from it into your installation.
    --
    John Dennis <jdennis at redhat.com>

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedMar 22, '05 at 9:09a
activeMar 22, '05 at 9:56p
posts6
users4
websitelist.org

People

Translate

site design / logo © 2022 Grokbase