From: Kern Sibbald Date: Wed, 7 Jan 2009 17:36:21 +0000 (+0000) Subject: Fix bug #1212, SD is unable to recycle purged volumes. fstat() X-Git-Tag: Release-3.0.0~341 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01e51a683cd58183be5c42018f2e9598cfc17be5;p=bacula%2Fbacula Fix bug #1212, SD is unable to recycle purged volumes. fstat() was broken. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8335 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/win32/compat/compat.cpp b/bacula/src/win32/compat/compat.cpp index 560c051a2e..cb1ebc9829 100644 --- a/bacula/src/win32/compat/compat.cpp +++ b/bacula/src/win32/compat/compat.cpp @@ -737,7 +737,7 @@ fstat(int fd, struct stat *sb) { BY_HANDLE_FILE_INFORMATION info; - if (!GetFileInformationByHandle((HANDLE)fd, &info)) { + if (!GetFileInformationByHandle((HANDLE)_get_osfhandle(fd), &info)) { const char *err = errorString(); Dmsg1(2099, "GetfileInformationByHandle: %s\n", err); LocalFree((void *)err); diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 7ba49fdc64..4bfcc8bd7e 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -10,6 +10,9 @@ filepattern (restore with regex in bsr) mixed priorities General: +07Jan09 +kes Fix bug #1212, SD is unable to recycle purged volumes. fstat() + was broken. 06Jan09 ebl Despool attributes directly from the director if attribute spool file is present