Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304609 Details for
Bug 445332
close_our_files erroneously closes FD for gencache.tdb
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch from Samba Bugzilla
samba-3.0.7-namecache.patch (text/plain), 1.06 KB, created by
Stephen J. Gowdy
on 2008-05-06 08:38:31 UTC
(
hide
)
Description:
Patch from Samba Bugzilla
Filename:
MIME Type:
Creator:
Stephen J. Gowdy
Created:
2008-05-06 08:38:31 UTC
Size:
1.06 KB
patch
obsolete
>diff -ru samba-3.0.7.orig/source/client/smbmount.c samba-3.0.7/source/client/smbmount.c >--- samba-3.0.7.orig/source/client/smbmount.c 2004-04-20 21:42:58.000000000 +0100 >+++ samba-3.0.7/source/client/smbmount.c 2006-01-07 18:07:20.000000000 +0000 >@@ -388,6 +388,9 @@ > c = NULL; > > if (!closed) { >+ /* close the name cache so that close_our_files() doesn't steal its FD */ >+ namecache_shutdown(); >+ > /* redirect stdout & stderr since we can't know that > the library functions we use are using DEBUG. */ > if ( (fd = open("/dev/null", O_WRONLY)) < 0) >diff -ru samba-3.0.7.orig/source/lib/gencache.c samba-3.0.7/source/lib/gencache.c >--- samba-3.0.7.orig/source/lib/gencache.c 2004-04-04 08:37:34.000000000 +0100 >+++ samba-3.0.7/source/lib/gencache.c 2006-01-10 20:47:00.000000000 +0000 >@@ -83,10 +83,13 @@ > > BOOL gencache_shutdown(void) > { >+ int ret; > /* tdb_close routine returns -1 on error */ > if (!cache) return False; > DEBUG(5, ("Closing cache file\n")); >- return tdb_close(cache) != -1; >+ ret = tdb_close(cache); >+ cache = NULL; >+ return ret != -1; > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 445332
: 304609