openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/shadow/4.6-r0/shadow-4.6/src/chgpasswd.c
static void fail_exit(int code)
{
    if (gr_locked)
    {
        if (gr_unlock() == 0)
        {
            fprintf(stderr, _("%s: failed to unlock %s\n"), Prog, gr_dbname());
            SYSLOG((LOG_ERR, "failed to unlock %s", gr_dbname()));
            /* continue */
        }
    }

#ifdef SHADOWGRP
    if (sgr_locked)
    {
        if (sgr_unlock() == 0)
        {
            fprintf(stderr, _("%s: failed to unlock %s\n"), Prog, sgr_dbname());
            SYSLOG((LOG_ERR, "failed to unlock %s", sgr_dbname()));
            /* continue */
        }
    }
#endif

    exit(code);
}
/*
 * fail_exit - exit with a failure code after unlocking the files
 */
exit with a failure code after unlocking the files
exit with a failure code after unlocking the files
static void fail_exit(int code)
{
    if (gr_locked)
    {
        if (gr_unlock() == 0)
        {
            fprintf(stderr, _("%s: failed to unlock %s\n"), Prog, gr_dbname());
            SYSLOG((LOG_ERR, "failed to unlock %s", gr_dbname()));
        }
    }
#ifdef SHADOWGRP
    if (sgr_locked)
    {
        if (sgr_unlock() == 0)
        {
            fprintf(stderr, _("%s: failed to unlock %s\n"), Prog, sgr_dbname());
            SYSLOG((LOG_ERR, "failed to unlock %s", sgr_dbname()));
        }
    }
#endif
    exit(code);
}
static void fail_exit ( int code ) { if ( gr_locked ) { if ( gr_unlock ( ) == 0 ) { fprintf ( stderr , _ ( " \n " ) , Prog , gr_dbname ( ) ) ; SYSLOG ( ( LOG_ERR , " " , gr_dbname ( ) ) ) ; } } #ifdef SHADOWGRP if ( sgr_locked ) { if ( sgr_unlock ( ) == 0 ) { fprintf ( stderr , _ ( " \n " ) , Prog , sgr_dbname ( ) ) ; SYSLOG ( ( LOG_ERR , " " , sgr_dbname ( ) ) ) ; } } #endif exit ( code ) ; }
fail_exit - exit with a failure code after unlocking the files
fail_exit - exit with a failure code after unlocking the files
/* continue */ /* continue */