OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1191-gca425b7

Gerrit Code Review gerrit@openafs.org
Fri, 20 May 2011 12:29:01 -0700 (PDT)


The following commit has been merged in the master branch:
commit ca425b7d49a2bf4c079aa38c0abf68596eca0b30
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Thu May 19 17:02:35 2011 -0500

    SOLARIS: Reset syscalls on mod_install failure
    
    If our call to mod_install fails for any reason (for example, if the
    afs entry is missing from /etc/name_to_sysnum), we may still have set
    the sysent structures for setgroups and ioctl to point at libafs code.
    So calls to those syscalls will cause a panic, since the code they
    point to is no longer loaded.
    
    To avoid this, just reset the sysent entries back to what they were if
    we fail to load, just like we do when unloading the module.
    
    Change-Id: Ia0d6691780c749a0f550e640783c093ae45604ac
    Reviewed-on: http://gerrit.openafs.org/4685
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>

 src/afs/SOLARIS/osi_vfsops.c |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)

-- 
OpenAFS Master Repository