From: Eric Andersen Date: Wed, 25 Apr 2001 17:12:33 +0000 (-0000) Subject: Larry noticed that chown and chgrp has the version numbers off a bit X-Git-Tag: 0_52~296 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c57a75d896431eda8d1c3dd018b34706bea67e81;p=oweals%2Fbusybox.git Larry noticed that chown and chgrp has the version numbers off a bit for glibc's lchown support. Thanks Larry. --- diff --git a/chgrp.c b/chgrp.c index c6312a7e4..0bb1e75c9 100644 --- a/chgrp.c +++ b/chgrp.c @@ -29,7 +29,7 @@ #include "busybox.h" /* Don't use lchown for libc5 or glibc older then 2.1.x */ -#if (__GLIBC__ < 2) && (__GLIBC_MINOR__ < 1) +#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) #define lchown chown #endif diff --git a/chown.c b/chown.c index b6059d048..ff935a4c0 100644 --- a/chown.c +++ b/chown.c @@ -29,7 +29,7 @@ #include "busybox.h" /* Don't use lchown for libc5 or glibc older then 2.1.x */ -#if (__GLIBC__ < 2) && (__GLIBC_MINOR__ < 1) +#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) #define lchown chown #endif diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c index c6312a7e4..0bb1e75c9 100644 --- a/coreutils/chgrp.c +++ b/coreutils/chgrp.c @@ -29,7 +29,7 @@ #include "busybox.h" /* Don't use lchown for libc5 or glibc older then 2.1.x */ -#if (__GLIBC__ < 2) && (__GLIBC_MINOR__ < 1) +#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) #define lchown chown #endif diff --git a/coreutils/chown.c b/coreutils/chown.c index b6059d048..ff935a4c0 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c @@ -29,7 +29,7 @@ #include "busybox.h" /* Don't use lchown for libc5 or glibc older then 2.1.x */ -#if (__GLIBC__ < 2) && (__GLIBC_MINOR__ < 1) +#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) #define lchown chown #endif