Changeset 422f5b7 in mod_gnutls for src/gnutls_cache.c


Ignore:
Timestamp:
Jan 29, 2013, 3:41:38 PM (7 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
e2b936e
Parents:
198b9f0
git-author:
Daniel Kahn Gillmor <dkg@…> (01/18/13 17:09:30)
git-committer:
Daniel Kahn Gillmor <dkg@…> (01/29/13 15:41:38)
Message:

report an error if the attempt to chown the dbm session cache fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    r198b9f0 r422f5b7  
    543543    /* Running as Root */
    544544    if (path1 && geteuid() == 0) {
    545         chown(path1, ap_unixd_config.user_id, -1);
     545        if (0 != chown(path1, ap_unixd_config.user_id, -1))
     546            ap_log_error(APLOG_MARK, APLOG_NOTICE, -1, s,
     547                         "GnuTLS: could not chown cache path1 `%s' to uid %d (errno: %d)",
     548                         path1, ap_unixd_config.user_id, errno);
    546549        if (path2 != NULL) {
    547             chown(path2, ap_unixd_config.user_id, -1);
     550            if (0 != chown(path2, ap_unixd_config.user_id, -1))
     551                ap_log_error(APLOG_MARK, APLOG_NOTICE, -1, s,
     552                             "GnuTLS: could not chown cache path2 `%s' to uid %d (errno: %d)",
     553                             path2, ap_unixd_config.user_id, errno);
    548554        }
    549555    }
Note: See TracChangeset for help on using the changeset viewer.