chiark / gitweb /
copyup/copydown written not debugged
authorIan Jackson <ian@anarres>
Fri, 9 Dec 2005 18:51:10 +0000 (18:51 +0000)
committerIan Jackson <ian@anarres>
Fri, 9 Dec 2005 18:51:10 +0000 (18:51 +0000)
virt-chroot/adt-virt-chroot

index d34f3a32db0cf8fa9498511b5ea6bdf87e955545..2161aec97e49a18674750b9a2e9030ade8611a2e 100755 (executable)
@@ -169,8 +169,8 @@ def cmd_execute(c, ce):
 
 def copyupdown(c, ce, up_p):
        cmdnumargs(c, ce, 2)
-       sd = c[2:4]
-       sde = ce[2:4]
+       sd = c[1:]
+       sde = ce[1:]
        if not sd[0] or not sd[1]:
                bomb("%s paths must be nonempty" % ce[0])
        dirsp = sd[0][-1]=='/'