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/libbb/device_open.c

    r1765 r2725  
    55 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
    66 *
    7  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
     7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    88 */
    99
     
    1111
    1212/* try to open up the specified device */
    13 int device_open(const char *device, int mode)
     13int FAST_FUNC device_open(const char *device, int mode)
    1414{
    15     int m, f, fd = -1;
     15    int m, f, fd;
    1616
    1717    m = mode | O_NONBLOCK;
     
    1919    /* Retry up to 5 times */
    2020    /* TODO: explain why it can't be considered insane */
    21     for (f = 0; f < 5; f++)
    22         if ((fd = open(device, m, 0600)) >= 0)
     21    for (f = 0; f < 5; f++) {
     22        fd = open(device, m, 0600);
     23        if (fd >= 0)
    2324            break;
     25    }
    2426    if (fd < 0)
    2527        return fd;
Note: See TracChangeset for help on using the changeset viewer.