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 161673 Details for
Bug 253047
Does not build on Fedora 8 - Update license to GPLv2 with exceptions
[?]
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]
diffs
cvsdiffs (text/plain), 9.49 KB, created by
Rich Megginson
on 2007-08-16 18:49:45 UTC
(
hide
)
Description:
diffs
Filename:
MIME Type:
Creator:
Rich Megginson
Created:
2007-08-16 18:49:45 UTC
Size:
9.49 KB
patch
obsolete
>Index: ldapserver/ldap/servers/slapd/protect_db.c >=================================================================== >RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/protect_db.c,v >retrieving revision 1.9 >diff -u -8 -r1.9 protect_db.c >--- ldapserver/ldap/servers/slapd/protect_db.c 10 Nov 2006 23:45:40 -0000 1.9 >+++ ldapserver/ldap/servers/slapd/protect_db.c 16 Aug 2007 18:48:28 -0000 >@@ -111,17 +111,17 @@ > return -1; > } > > while(1) { > /* Try to grab the lockfile NUM_TRIES times waiting WAIT_TIME milliseconds after each try */ > t.tv_sec = 0; > t.tv_usec = WAIT_TIME * 1000; > for(x = 0; x < NUM_TRIES; x++) { >- if ((fd = open(lockfile, O_RDWR | O_CREAT | O_EXCL)) != -1) { >+ if ((fd = open(lockfile, O_RDWR | O_CREAT | O_EXCL, 0664)) != -1) { > /* Got the lock */ > write(fd, (void *) &pid, sizeof(pid_t)); > close(fd); > return 0; > } > select(0, NULL, NULL, NULL, &t); > } > >Index: ldapserver/ldap/servers/slapd/back-ldbm/dbhelp.c >=================================================================== >RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/dbhelp.c,v >retrieving revision 1.7 >diff -u -8 -r1.7 dbhelp.c >--- ldapserver/ldap/servers/slapd/back-ldbm/dbhelp.c 15 Nov 2006 17:47:58 -0000 1.7 >+++ ldapserver/ldap/servers/slapd/back-ldbm/dbhelp.c 16 Aug 2007 18:48:28 -0000 >@@ -69,17 +69,17 @@ > > LDAPDebug( LDAP_DEBUG_TRACE, "=> dblayer_copy_file_keybykey\n", 0, 0, 0 ); > /* Open the source file */ > retval = db_create(&source_file, env, 0); > if (retval) { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_copy_file_keybykey, Create error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } >- retval = source_file->open(source_file, NULL, source_file_name, NULL, DB_UNKNOWN, DB_RDONLY, 0); >+ retval = (source_file->open)(source_file, NULL, source_file_name, NULL, DB_UNKNOWN, DB_RDONLY, 0); > if (retval) { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_copy_file_keybykey, Open error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } > /* Get the info we need from the source file */ > retval = source_file->get_flags(source_file, &dbflags); > if (retval) { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_copy_file_keybykey, get_flags error %d: %s\n", retval, db_strerror(retval), 0); >@@ -108,17 +108,17 @@ > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_copy_file_keybykey, set_flags error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } > retval = destination_file->set_pagesize(destination_file,dbpagesize); > if (retval) { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_copy_file_keybykey, set_pagesize error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } >- retval = destination_file->open(destination_file, NULL, destination_file_name, NULL, dbtype, DB_CREATE | DB_EXCL, mode); >+ retval = (destination_file->open)(destination_file, NULL, destination_file_name, NULL, dbtype, DB_CREATE | DB_EXCL, mode); > if (retval) { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_copy_file_keybykey, Open error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } > /* Open a cursor on the source file */ > retval = source_file->cursor(source_file,NULL,&source_cursor,0); > if (retval) { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_copy_file_keybykey, Create cursor error %d: %s\n", retval, db_strerror(retval), 0); >@@ -255,17 +255,17 @@ > > retval = db_env_create(&ret_env,0); > if (retval) { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_make_private_recovery_env, Create error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } > dblayer_set_env_debugging(ret_env, priv); > >- retval = ret_env->open(ret_env,db_home_dir, DB_INIT_TXN | DB_RECOVER_FATAL | DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE,0); >+ retval = (ret_env->open)(ret_env,db_home_dir, DB_INIT_TXN | DB_RECOVER_FATAL | DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE,0); > if (0 == retval) { > *env = ret_env; > } else { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_make_private_recovery_env, Open error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } > > error: >@@ -287,17 +287,17 @@ > *env = NULL; > > retval = db_env_create(&ret_env,0); > if (retval) { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_make_private_simple_env, error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } > >- retval = ret_env->open(ret_env,db_home_dir,DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE,0); >+ retval = (ret_env->open)(ret_env,db_home_dir,DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE,0); > if (0 == retval) { > *env = ret_env; > } else { > LDAPDebug(LDAP_DEBUG_ANY, "dblayer_make_private_simple_env, error %d: %s\n", retval, db_strerror(retval), 0); > goto error; > } > > error: >Index: ldapserver/ldap/servers/slapd/back-ldbm/dblayer.c >=================================================================== >RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/dblayer.c,v >retrieving revision 1.18 >diff -u -8 -r1.18 dblayer.c >--- ldapserver/ldap/servers/slapd/back-ldbm/dblayer.c 15 Mar 2007 21:34:32 -0000 1.18 >+++ ldapserver/ldap/servers/slapd/back-ldbm/dblayer.c 16 Aug 2007 18:48:29 -0000 >@@ -97,21 +97,21 @@ > #include "dblayer.h" > #include <prrwlock.h> > > #if 1000*DB_VERSION_MAJOR + 100*DB_VERSION_MINOR >= 4100 > #define DB_OPEN(oflags, db, txnid, file, database, type, flags, mode, rval) \ > { \ > if (((oflags) & DB_INIT_TXN) && ((oflags) & DB_INIT_LOG)) \ > { \ >- (rval) = (db)->open((db), (txnid), (file), (database), (type), (flags)|DB_AUTO_COMMIT, (mode)); \ >+ (rval) = ((db)->open)((db), (txnid), (file), (database), (type), (flags)|DB_AUTO_COMMIT, (mode)); \ > } \ > else \ > { \ >- (rval) = (db)->open((db), (txnid), (file), (database), (type), (flags), (mode)); \ >+ (rval) = ((db)->open)((db), (txnid), (file), (database), (type), (flags), (mode)); \ > } \ > } > /* 608145: db4.1 and newer does not require exclusive lock for checkpointing > * and transactions */ > #define DB_CHECKPOINT_LOCK(use_lock, lock) ; > #define DB_CHECKPOINT_UNLOCK(use_lock, lock) ; > #else /* older then db 41 */ > #define DB_OPEN(oflags, db, txnid, file, database, type, flags, mode, rval) \ >@@ -1551,17 +1551,17 @@ > { > LDAPDebug(LDAP_DEBUG_ANY, > "ERROR -- Failed to create DBENV (returned: %d).\n", > return_value, 0, 0); > return return_value; > } > } > >- return_value = pEnv->dblayer_DB_ENV->open( >+ return_value = (pEnv->dblayer_DB_ENV->open)( > pEnv->dblayer_DB_ENV, > region_dir, > recover_flags, > priv->dblayer_file_mode > ); > if (0 != return_value) { > if (return_value == ENOMEM) { > /* >@@ -1607,17 +1607,17 @@ > #endif > #else /* older */ > open_flags |= DB_TXN_NOSYNC; > #endif > } > if (!((DBLAYER_IMPORT_MODE|DBLAYER_INDEX_MODE) & dbmode)) > { > pEnv->dblayer_openflags = open_flags; >- return_value = pEnv->dblayer_DB_ENV->open( >+ return_value = (pEnv->dblayer_DB_ENV->open)( > pEnv->dblayer_DB_ENV, > region_dir, > open_flags, > priv->dblayer_file_mode > ); > > > /* Now attempt to start up the checkpoint and deadlock threads */ >@@ -1935,17 +1935,17 @@ > cachesize%GIGABYTE, > priv->dblayer_ncache); > /* probably want to change this -- but for now, create the > * mpool files in the instance directory. > */ > mypEnv->dblayer_openflags = oflags; > data_directories[0] = inst->inst_parent_dir_name; > dblayer_set_data_dir(priv, mypEnv, data_directories); >- return_value = mypEnv->dblayer_DB_ENV->open(mypEnv->dblayer_DB_ENV, >+ return_value = (mypEnv->dblayer_DB_ENV->open)(mypEnv->dblayer_DB_ENV, > inst_dirp, > oflags, > priv->dblayer_file_mode); > if (return_value != 0) { > LDAPDebug(LDAP_DEBUG_ANY, > "Unable to open new DB_ENV for import/export! %d\n", > return_value, 0, 0); > goto out; >@@ -2215,17 +2215,17 @@ > 0, cachesize, priv->dblayer_ncache); > > /* probably want to change this -- but for now, create the > * mpool files in the instance directory. > */ > mypEnv->dblayer_openflags = envflags; > data_directories[0] = inst->inst_parent_dir_name; > dblayer_set_data_dir(priv, mypEnv, data_directories); >- rval = mypEnv->dblayer_DB_ENV->open(mypEnv->dblayer_DB_ENV, >+ rval = (mypEnv->dblayer_DB_ENV->open)(mypEnv->dblayer_DB_ENV, > priv->dblayer_home_directory, envflags, priv->dblayer_file_mode); > if (rval != 0) > { > LDAPDebug(LDAP_DEBUG_ANY, > "Unable to open new DB_ENV for upgradedb/reindex %d\n", rval, 0, 0); > goto err; > } > *ppEnv = mypEnv->dblayer_DB_ENV;
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 253047
: 161673 |
161681
|
161686