From: Kern Sibbald Date: Sat, 21 Feb 2004 22:53:46 +0000 (+0000) Subject: Fix result return in compat readdir_r X-Git-Tag: Release-7.0.0~9688 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c257d30a094ad0ced98676be859e9b7310f564d;p=bacula%2Fbacula Fix result return in compat readdir_r git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1065 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/README b/bacula/README index ecba375bb6..513b130c99 100644 --- a/bacula/README +++ b/bacula/README @@ -101,3 +101,14 @@ In addition to GPL, there are also parts of Bacula that are licensed under LGPL so that they may be used in proprietary code to interface with Bacula, and there are parts that are in the public domain. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/bacula/kernstodo b/bacula/kernstodo index 8a4831ec00..ca5f31fc1b 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -71,6 +71,8 @@ For 1.33 Testing/Documentation: http://howtos.linux.com/guides/nag2/x-087-2-nfs.mountd.shtml For 1.33 +- Dates are wrong in restore list from Win32 FD. +- Dates are wrong in catalog from Win32 FD. - Remove h_errno from bnet.c by including proper header. - Do not err job if could not write bootstrap file. - Bizarre message: Error: Could not open WriteBootstrap file: diff --git a/bacula/src/filed/status.c b/bacula/src/filed/status.c index 4b668191a4..a13f6bc02a 100755 --- a/bacula/src/filed/status.c +++ b/bacula/src/filed/status.c @@ -105,7 +105,7 @@ static void do_status(void sendit(const char *msg, int len, void *sarg), void *a /* * List running jobs */ - Dmsg0(200, "Begin status jcr loop.\n"); + Dmsg0(1000, "Begin status jcr loop.\n"); lock_jcr_chain(); for (njcr=NULL; (njcr=get_next_jcr(njcr)); ) { bstrftime_nc(dt, sizeof(dt), njcr->start_time); @@ -155,7 +155,7 @@ static void do_status(void sendit(const char *msg, int len, void *sarg), void *a free_locked_jcr(njcr); } unlock_jcr_chain(); - Dmsg0(200, "Begin status jcr loop.\n"); + Dmsg0(1000, "Begin status jcr loop.\n"); if (!found) { len = Mmsg(&msg, _("No jobs running.\n")); sendit(msg, len, arg); @@ -382,7 +382,7 @@ char *bac_status(int stat) break; } } - Dmsg0(200, "Begin bac_status jcr loop.\n"); + Dmsg0(1000, "Begin bac_status jcr loop.\n"); lock_jcr_chain(); for (njcr=NULL; (njcr=get_next_jcr(njcr)); ) { if (njcr->JobId != 0) { @@ -394,7 +394,7 @@ char *bac_status(int stat) free_locked_jcr(njcr); } unlock_jcr_chain(); - Dmsg0(200, "End bac_status jcr loop.\n"); + Dmsg0(1000, "End bac_status jcr loop.\n"); bstrncpy(buf, termstat, sizeof(buf)); return buf; } diff --git a/bacula/src/filed/win32/bacula.bmp b/bacula/src/filed/win32/bacula.bmp index 9db8e64238..a31eb16369 100644 Binary files a/bacula/src/filed/win32/bacula.bmp and b/bacula/src/filed/win32/bacula.bmp differ diff --git a/bacula/src/findlib/find_one.c b/bacula/src/findlib/find_one.c index ae7c984746..ef5f4bc860 100755 --- a/bacula/src/findlib/find_one.c +++ b/bacula/src/findlib/find_one.c @@ -327,6 +327,8 @@ find_one_file(JCR *jcr, FF_PKT *ff_pkt, int handle_file(FF_PKT *ff, void *hpkt), status = readdir_r(directory, entry, &result); if (status != 0 || result == NULL) { +// Dmsg2(99, "readdir returned stat=%d result=0x%x\n", +// status, (long)result); break; } ASSERT(name_max+1 > (int)sizeof(struct dirent) + (int)NAMELEN(entry));