From 451d75799661d18b4679f9488c7bfe4f0ffb97d5 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 3 Aug 2021 20:12:51 +0200 Subject: [PATCH] fix renaming single symlinks --- copyparty/up2k.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 1c45e0a0..44caedbb 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -1422,8 +1422,8 @@ class Up2k(object): if not srem: raise Pebkac(400, "mv: cannot move a mountpoint") - st = bos.stat(sabs) - if stat.S_ISREG(st.st_mode): + st = bos.lstat(sabs) + if stat.S_ISREG(st.st_mode) or stat.S_ISLNK(st.st_mode): return self._mv_file(uname, svp, dvp) jail = svn.get_dbv(srem)[0]