git » abk » commit 98ef221

Use lchown() instead of chown() for symlinks.

author
2005-03-02 05:10:18 UTC
committer
2005-03-02 05:10:18 UTC
parent 05f3208ebed0522c34a186564aa671ca8840e74d

Use lchown() instead of chown() for symlinks.

abk +1 -1

diff --git a/abk b/abk
index 620872a..e1febb7 100644
--- a/abk
+++ b/abk
@@ -117,7 +117,7 @@ class file_info:
 		"Copy a symbolic link."
 		linkto = os.readlink(self.name)
 		os.symlink(linkto, dst)
-		os.chown(dst, self.uid, self.gid)
+		os.lchown(dst, self.uid, self.gid)
 		# note that we don't chmod, because it will change the
 		# destination owner instead of the link's.