Therefore, two people who had a doorway or a window between them and made an eruv between them, and the doorway or window became blocked on Shabbat, and they are no longer open to one another—nevertheless, they are permitted to carry from this one to that one through holes and cracks between them, for since it was permitted, it remains permitted; and likewise, they are permitted to carry over the top of the wall. And similarly, if there was a wall between two courtyards, and each one made an eruv for itself, and the wall was breached on Shabbat—they are permitted to carry, each one in his courtyard, even vessels that were in the house at the start of Shabbat, for "since it was permitted, it remains permitted." And even though this is a change in the partition—this is not a partition that separates between distinct domains, such as between a reshut hayachid and a reshut harabim or between a reshut hayachid and a karmelit, but rather between a reshut hayachid and a reshut hayachid, and it is as if there is no change in the partitions here. But if the courtyard was actually breached into a reshut harabim or into a karmelit—it is forbidden, and we do not say in this case "since it was permitted, it remains permitted," and if the courtyard was breached into a karmelit—it also becomes like a karmelit. However, there is a side of leniency in this, for it is permitted to carry two amot in the courtyard and two amot in the karmelit. And some say that even this is forbidden, for to be stringent, it has not lost the status of a courtyard (Magen Avraham, subsection 3), and our teacher, the Beit Yosef, in his great book wrote that it is permitted, see there. (And in the Tosefot Shabbat, subsection 6, he wrote that this is a dispute between Rashi, Eruvin 24a, and Tosafot, Shabbat 9, see there.)
לפיכך שנים שהיה ביניהם פתח או חלון ועירבו ביניהם, ונסתם בשבת הפתח או החלון, והרי אינם פתוחים זה לזה - מכל מקום מותרים לטלטל מזה לזה דרך חורים וסדקים שביניהם, דהואיל והותרה - הותרה, וכן מעל גבי הכותל מותרים לטלטל. וכן אם היה כותל בין שתי חצרות, ועירבה כל אחת לעצמה, ונפרץ הכותל בשבת - מותרים לטלטל כל אחד בחצרו אפילו כלים ששבתו בתוך הבית, ד'הואיל והותרה - הותרה'. ואף על גב דזהו שינוי במחיצה - אין זה מחיצה המפסקת בין רשויות נפרדות, כמו בין רשות היחיד לרשות הרבים או בין רשות היחיד לכרמלית, אלא בין רשות היחיד לרשות היחיד, והוי כאין כאן שינוי במחיצות. אבל אם באמת נפרצה החצר לרשות הרבים או לכרמלית - אסור, ולא אמרינן בזה 'הואיל והותרה - הותרה', ואם נפרץ החצר לכרמלית - נעשה גם הוא ככרמלית. אמנם יש בזה צד קולא, דמותר לטלטל שני אמות בחצר ושני אמות בהכרמלית. ויש אומרים דגם זה אסור, דלהחמיר לא אבד ממנו שם חצר, (מג"א סק"ג) ורבינו הב"י בספרו הגדול כתב דמותר ע"ש. (ובת"ש סק"ו כתב שזהו מחלוקת רש"י עירובין כ"ד. ותוספות שבת ט' ע"ש)