GPL-2.0 requirement relaxed for GPL-2.0+ requirement.
[ntfsprogs-gnomevfs.git] / src / gnome-vfs-method.c
index fbd4b13..70f6668 100644 (file)
@@ -4,7 +4,8 @@
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; exactly version 2 of June 1991 is required
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  * 
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -400,6 +401,7 @@ s64 pos;
 
        if (!libntfs_directory->file_info_list->data) {
                g_assert(libntfs_directory->file_info_list->next==NULL);
+               /* Do not clear the list to leave us stuck at EOF - GnomeVFS behaves that way. */
                errvfsresult=GNOME_VFS_ERROR_EOF;
                }
        else {
@@ -408,10 +410,10 @@ s64 pos;
                                file_info,      /* dest */
                                libntfs_directory->file_info_list->data);       /* src */
                gnome_vfs_file_info_unref(libntfs_directory->file_info_list->data);
+               libntfs_directory->file_info_list=g_list_delete_link(
+                               libntfs_directory->file_info_list,libntfs_directory->file_info_list);
                errvfsresult=GNOME_VFS_OK;
                }
-       libntfs_directory->file_info_list=g_list_delete_link(
-                       libntfs_directory->file_info_list,libntfs_directory->file_info_list);
        return errvfsresult;
 }