iRODS/server/api/src/rsChkObjPermAndStat.cpp
int
saveCollEntForChkColl( collEnt_t *collEnt ) {
    if ( collEnt == NULL ) {
        return 0;
    }
    if ( collEnt->collName != NULL ) {
        collEnt->collName = strdup( collEnt->collName );
    }
    if ( collEnt->dataName != NULL ) {
        collEnt->dataName = strdup( collEnt->dataName );
    }
    if ( collEnt->resource != NULL ) {
        collEnt->resource = strdup( collEnt->resource );
    }
    if ( collEnt->resc_hier != NULL ) {
        collEnt->resc_hier = strdup( collEnt->resc_hier );
    }
    return 0;
}
/* saveCollEntForChkColl - save some of entries in collEnt_t used by
 * chkCollForBundleOpr. These entry need to be saved because it could
 * be freed if the query has continuation.
 */
save some of entries in collEnt_t used by
chkCollForBundleOpr. These entry need to be saved because it could
be freed if the query has continuation.
save some of entries in collEnt_t used by chkCollForBundleOpr . These entry need to be saved because it could be freed if the query has continuation .
int
saveCollEntForChkColl( collEnt_t *collEnt ) {
    if ( collEnt == NULL ) {
        return 0;
    }
    if ( collEnt->collName != NULL ) {
        collEnt->collName = strdup( collEnt->collName );
    }
    if ( collEnt->dataName != NULL ) {
        collEnt->dataName = strdup( collEnt->dataName );
    }
    if ( collEnt->resource != NULL ) {
        collEnt->resource = strdup( collEnt->resource );
    }
    if ( collEnt->resc_hier != NULL ) {
        collEnt->resc_hier = strdup( collEnt->resc_hier );
    }
    return 0;
}
int saveCollEntForChkColl ( collEnt_t * collEnt ) { if ( collEnt == NULL ) { return 0 ; } if ( collEnt -> collName != NULL ) { collEnt -> collName = strdup ( collEnt -> collName ) ; } if ( collEnt -> dataName != NULL ) { collEnt -> dataName = strdup ( collEnt -> dataName ) ; } if ( collEnt -> resource != NULL ) { collEnt -> resource = strdup ( collEnt -> resource ) ; } if ( collEnt -> resc_hier != NULL ) { collEnt -> resc_hier = strdup ( collEnt -> resc_hier ) ; } return 0 ; }
saveCollEntForChkColl - save some of entries in collEnt_t used by
 chkCollForBundleOpr.
saveCollEntForChkColl - save some of entries in collEnt_t used by chkCollForBundleOpr .