Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/libpwdgrp/pwd_grp_internal.c

    r1765 r2725  
    11/* vi: set sw=4 ts=4: */
    2 /*  Copyright (C) 2003     Manuel Novoa III
     2/* Copyright (C) 2003     Manuel Novoa III
    33 *
    4  *  Licensed under GPL v2, or later.  See file LICENSE in this tarball.
     4 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    55 */
    66
    7 /*  Nov 6, 2003  Initial version.
     7/* Nov 6, 2003  Initial version.
    88 *
    9  *  NOTE: This implementation is quite strict about requiring all
     9 * NOTE: This implementation is quite strict about requiring all
    1010 *    field seperators.  It also does not allow leading whitespace
    1111 *    except when processing the numeric fields.  glibc is more
    1212 *    lenient.  See the various glibc difference comments below.
    1313 *
    14  *  TODO:
     14 * TODO:
    1515 *    Move to dynamic allocation of (currently statically allocated)
    1616 *      buffers; especially for the group-related functions since
    1717 *      large group member lists will cause error returns.
    18  *
    1918 */
    2019
     
    3332    *result = NULL;
    3433
    35     stream = fopen(GETXXKEY_R_PATHNAME, "r");
     34    stream = fopen_for_read(GETXXKEY_R_PATHNAME);
    3635    if (!stream)
    3736        return errno;
     
    3938        rv = bb__pgsreader(GETXXKEY_R_PARSER, resultbuf, buffer, buflen, stream);
    4039        if (!rv) {
    41             if (GETXXKEY_R_TEST(resultbuf)) { /* Found key? */
     40            if (GETXXKEY_R_TEST(resultbuf)) { /* found key? */
    4241                *result = resultbuf;
    4342                break;
    4443            }
    4544        } else {
    46             if (rv == ENOENT) { /* end-of-file encountered. */
     45            if (rv == ENOENT) {  /* EOF encountered */
    4746                rv = 0;
    4847            }
Note: See TracChangeset for help on using the changeset viewer.