summaryrefslogtreecommitdiff
path: root/gsystem-file-utils.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-01-08 12:27:05 -0500
committerColin Walters <walters@verbum.org>2013-01-08 12:27:05 -0500
commit6890c19d51da21de1e45a1ac39020672cf6b2b02 (patch)
treef866efce79444ba265c31f283b1dc8e17e7ac739 /gsystem-file-utils.c
parentba7c19cd3b44902ba1dd9bb0fba43293b43abb0b (diff)
downloadlibgsystem-6890c19d51da21de1e45a1ac39020672cf6b2b02.tar.gz
fileutils: Fix incorrect parameter to lstat()
Diffstat (limited to 'gsystem-file-utils.c')
-rw-r--r--gsystem-file-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsystem-file-utils.c b/gsystem-file-utils.c
index 7f7869d..f33bf41 100644
--- a/gsystem-file-utils.c
+++ b/gsystem-file-utils.c
@@ -311,7 +311,7 @@ linkcopy_internal (GFile *src,
dest_parent = g_file_get_parent (dest);
- if (lstat (gs_file_get_path_cached (src), &dest_stat) == -1)
+ if (lstat (gs_file_get_path_cached (src), &src_stat) == -1)
{
int errsv = errno;
g_set_error_literal (error, G_IO_ERROR, g_io_error_from_errno (errno),