From f073f38d59e717a6884e0ca7f52840970efb6886 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 13 Nov 2010 16:34:25 -0500 Subject: [PATCH] Sanity-check modes more carefully. --- rcs-fast-import | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rcs-fast-import b/rcs-fast-import index bab2206..c8d6b77 100755 --- a/rcs-fast-import +++ b/rcs-fast-import @@ -670,6 +670,10 @@ class RCS(Generic): def sanecheck(self, event, path, mode, copyfile): if mode == "160000": raise FatalException("ignoring a submodule link %s", path) + elif mode == "120000": + raise FatalException("ignoring a symlink %s", path) + if not mode[-3:] in ('644', '755'): + raise FatalException("unknown mode %s on %s", (mode, path)) def checkin(self, commit, comment, op, path): "Check in a new revision - also used to create new masters." command = "ci -l" -- 2.43.0