[libgsystem] fileutils: Fix incorrect parameter to lstat()



commit 6890c19d51da21de1e45a1ac39020672cf6b2b02
Author: Colin Walters <walters verbum org>
Date:   Tue Jan 8 12:27:05 2013 -0500

    fileutils: Fix incorrect parameter to lstat()

 gsystem-file-utils.c |    2 +-
 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),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]