From: Eric S. Raymond Date: Sat, 13 Nov 2010 21:34:25 +0000 (-0500) Subject: Sanity-check modes more carefully. X-Git-Tag: 0.1~21 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=f073f38d59e717a6884e0ca7f52840970efb6886;p=rcs-fast-import.git Sanity-check modes more carefully. --- 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"