Mercurial > gftp.yaz
diff lib/misc.c @ 852:5e3005923374
2006-11-16 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/protocols.c lib/local.c - added support for detecting
recursive symbolic links. This currently only works when uploading
files. It will only work when downloading files if the inode and device
are properly populated. I need to check but it may be possible to get
this information from the SSH and FSP protocols. (closes #172499)
author | masneyb |
---|---|
date | Fri, 17 Nov 2006 02:24:14 +0000 |
parents | 8263cc35c027 |
children | 2d4e6fca8e7c |
line wrap: on
line diff
--- a/lib/misc.c Fri Nov 17 01:38:51 2006 +0000 +++ b/lib/misc.c Fri Nov 17 02:24:14 2006 +0000 @@ -430,6 +430,20 @@ } +gint +uint_hash_compare (gconstpointer path1, gconstpointer path2) +{ + return (GPOINTER_TO_UINT (path1) == GPOINTER_TO_UINT (path2)); +} + + +guint +uint_hash_function (gconstpointer key) +{ + return (GPOINTER_TO_UINT (key)); +} + + void free_file_list (GList * filelist) {