Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/libbb/xreadlink.c


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/libbb/xreadlink.c

    r2725 r3621  
    22/*
    33 * xreadlink.c - safe implementation of readlink.
    4  * Returns a NULL on failure...
     4 * Returns a NULL on failure.
    55 *
    66 * Licensed under GPLv2, see file LICENSE in this source tree.
     
    88
    99#include "libbb.h"
     10
     11/* Some systems (eg Hurd) do not have MAXSYMLINKS definition,
     12 * set it to some reasonable value if it isn't defined */
     13#ifndef MAXSYMLINKS
     14# define MAXSYMLINKS 20
     15#endif
    1016
    1117/*
     
    103109char* FAST_FUNC xmalloc_realpath(const char *path)
    104110{
    105 #if defined(__GLIBC__) && !defined(__UCLIBC__)
     111/* NB: uclibc also defines __GLIBC__
     112 * Therefore the test "if glibc, or uclibc >= 0.9.31" looks a bit weird:
     113 */
     114#if defined(__GLIBC__) && \
     115    (!defined(__UCLIBC__) || UCLIBC_VERSION >= KERNEL_VERSION(0, 9, 31))
    106116    /* glibc provides a non-standard extension */
    107117    /* new: POSIX.1-2008 specifies this behavior as well */
Note: See TracChangeset for help on using the changeset viewer.