Remove option not supported on freebsd openssh
authorMagnus Hagander <magnus@hagander.net>
Tue, 30 Dec 2008 16:03:04 +0000 (17:03 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 30 Dec 2008 16:03:04 +0000 (17:03 +0100)
gitdump.py

index ccc36e7e105f38621f2ed749d9e0d0bae5081cd6..99378c6eb8ddeafb9cd9ee850273702146cd0897 100644 (file)
@@ -32,7 +32,7 @@ class AuthorizedKeysDumper:
                curs.execute("SELECT userid,sshkey FROM git_users ORDER BY userid")
                f = open("%s/.ssh/authorized_keys.tmp" % self.conf.get("paths", "githome"), "w")
                for userid,sshkey in curs:
-                       f.write("command=\"%s %s\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,no-user-rc %s\n" % (self.conf.get("paths", "pggit"), userid, sshkey))
+                       f.write("command=\"%s %s\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty %s\n" % (self.conf.get("paths", "pggit"), userid, sshkey))
                f.close()
                os.chmod("%s/.ssh/authorized_keys.tmp" % self.conf.get("paths", "githome"), 0600)
                os.rename("%s/.ssh/authorized_keys.tmp" % self.conf.get("paths", "githome"), "%s/.ssh/authorized_keys" % self.conf.get("paths", "githome"))