[On 10 Aug, @17:20, Martin Pels wrote in "Bug#322421: hdup: no history o ..."]
> Package: hdup
> Version: 2.0.7-1
> Severity: minor
> 
> When enabling the "no history" option in hdup.conf backups should be
> placed in the directory static, and named <host>.static.<scheme>.tar.gz.
> Instead of "static", the word "stati" is used in both occurences.

indeed. I'm not releasing a 2.0.11 just for this as I've just released
2.0.10 a few days ago.

The following patch fixes it (stupid off by one err):
(should also apply to older releases)

grtz Miek

Index: src/hduplib.c
===================================================================
--- src/hduplib.c       (revision 126)
+++ src/hduplib.c       (working copy)
@@ -39,8 +39,8 @@
        time_t currenttime;
        struct tm *ltime;

-       if ( history == 1 ) {
-               g_strlcpy(d, STATIC, strlen(STATIC));
+       if (history == 1) {
+               g_strlcpy(d, STATIC, strlen(STATIC) + 1);
                return FALSE;
        }




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to