]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/authenticate.c
This patch fixes bug #1012 where the job is canceled because
[bacula/bacula] / bacula / src / dird / authenticate.c
index 28455cfe13a4fdd3a774aafa1476809f2131f3ae..1bbb84e3d29f3b5a489d7ae4c7a0585f91f48955 100644 (file)
@@ -7,8 +7,8 @@
    many others, a complete list can be found in the file AUTHORS.
    This program is Free Software; you can redistribute it and/or
    modify it under the terms of version two of the GNU General Public
-   License as published by the Free Software Foundation plus additions
-   that are listed in the file LICENSE.
+   License as published by the Free Software Foundation and included
+   in the file LICENSE.
 
    This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -173,7 +173,7 @@ int authenticate_file_daemon(JCR *jcr)
    /*
     * Send my name to the File daemon then do authentication
     */
-   bstrncpy(dirname, director->hdr.name, sizeof(dirname));
+   bstrncpy(dirname, director->name(), sizeof(dirname));
    bash_spaces(dirname);
    /* Timeout Hello after 1 min */
    btimer_t *tid = start_bsock_timer(fd, AUTH_TIMEOUT);