From 01e51a683cd58183be5c42018f2e9598cfc17be5 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 7 Jan 2009 17:36:21 +0000 Subject: [PATCH] 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 --- bacula/src/win32/compat/compat.cpp | 2 +- bacula/technotes-2.5 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5