### Eclipse Workspace Patch 1.0
#P GnuCash-trunk
Index: src/backend/xml/gnc-backend-xml.c
===================================================================
--- src/backend/xml/gnc-backend-xml.c	(revision 19250)
+++ src/backend/xml/gnc-backend-xml.c	(working copy)
@@ -829,7 +829,7 @@
                 PINFO ("unlink lock file: %s", name);
                 g_unlink(name);
             }
-            else if (be->file_retention_days > 0)
+            else if (be->file_retention_days >= 0)
             {
                 time_t file_time;
                 struct tm file_tm;
@@ -848,7 +848,7 @@
                 if (res
                         && res != name + pathlen + 1
                         && file_time > 0
-                        && days > be->file_retention_days)
+                        && days >= be->file_retention_days)
                 {
                     PINFO ("g_unlink stale (%d days old) file: %s", days, name);
                     g_unlink(name);
Index: src/gnome-utils/glade/preferences.glade
===================================================================
--- src/gnome-utils/glade/preferences.glade	(revision 19249)
+++ src/gnome-utils/glade/preferences.glade	(working copy)
@@ -1747,7 +1747,7 @@
 		  <child>
 		    <widget class="GtkSpinButton" id="gconf/general/retain_days">
 		      <property name="visible">True</property>
-		      <property name="tooltip" translatable="yes">Delete old log/backup files after this many days (0 = never).</property>
+		      <property name="tooltip" translatable="yes">How many days to keep old log/backup files (0 = never, -1 = always).</property>
 		      <property name="can_focus">True</property>
 		      <property name="climb_rate">1</property>
 		      <property name="digits">0</property>
@@ -1755,7 +1755,7 @@
 		      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
 		      <property name="snap_to_ticks">False</property>
 		      <property name="wrap">False</property>
-		      <property name="adjustment">30 0 99999 1 10 10</property>
+		      <property name="adjustment">30 -1 99999 1 10 10</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
