Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/libbb/isdirectory.c

    r2725 r3232  
    1616 * Nonexistent files return FALSE.
    1717 */
    18 int FAST_FUNC is_directory(const char *fileName, int followLinks, struct stat *statBuf)
     18int FAST_FUNC is_directory(const char *fileName, int followLinks)
    1919{
    2020    int status;
    21     struct stat astatBuf;
    22 
    23     if (statBuf == NULL) {
    24         /* use auto stack buffer */
    25         statBuf = &astatBuf;
    26     }
     21    struct stat statBuf;
    2722
    2823    if (followLinks)
    29         status = stat(fileName, statBuf);
     24        status = stat(fileName, &statBuf);
    3025    else
    31         status = lstat(fileName, statBuf);
     26        status = lstat(fileName, &statBuf);
    3227
    33     status = (status == 0 && S_ISDIR(statBuf->st_mode));
     28    status = (status == 0 && S_ISDIR(statBuf.st_mode));
    3429
    3530    return status;
Note: See TracChangeset for help on using the changeset viewer.