From: <ri...@us...> - 2008-08-31 17:57:24
|
Revision: 7534 http://bacula.svn.sourceforge.net/bacula/?rev=7534&view=rev Author: ricozz Date: 2008-08-31 17:57:29 +0000 (Sun, 31 Aug 2008) Log Message: ----------- ebl Fix bad value for the first Last FM Modified Paths: -------------- trunk/bacula/src/stored/vtape.c Modified: trunk/bacula/src/stored/vtape.c =================================================================== --- trunk/bacula/src/stored/vtape.c 2008-08-31 17:56:22 UTC (rev 7533) +++ trunk/bacula/src/stored/vtape.c 2008-08-31 17:57:29 UTC (rev 7534) @@ -961,7 +961,9 @@ /* If the vtape is empty, start by writing a EOF */ if (online && !read_fm(VT_READ_EOF)) { - weof(); + lseek(fd, 0, SEEK_SET); /* rewind */ + cur_FM = next_FM = last_FM = 0; /* reset */ + weof(); /* write the first EOF */ last_file = current_file=0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |