]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/fd_cmds.c
ebl Fix a bug in read_close_session which return random status
[bacula/bacula] / bacula / src / stored / fd_cmds.c
index e06a6c437e32429a93206941af2b2e1fffac799f..8bbddbcd31bfd836d68ed3dcc0ede23b1ed25685 100644 (file)
@@ -21,8 +21,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
@@ -399,7 +399,7 @@ static bool read_close_session(JCR *jcr)
       return false;
    }
    /* Send final statistics to File daemon */
-   bnet_fsend(fd, OK_close);
+   bnet_fsend(fd, OK_close, jcr->JobStatus);
    Dmsg1(160, ">filed: %s\n", fd->msg);
 
    bnet_sig(fd, BNET_EOD);          /* send EOD to File daemon */