svn commit: trunk/uClibc/extra/scripts
Peter S. Mazinger
ps.m at gmx.net
Fri Jan 27 06:58:46 UTC 2006
On Thu, 26 Jan 2006 vapier at uclibc.org wrote:
> Author: vapier
> Date: 2006-01-26 21:22:43 -0800 (Thu, 26 Jan 2006)
> New Revision: 13631
>
> Log:
> just exec the cat
>
> Modified:
> trunk/uClibc/extra/scripts/getent
>
>
> Changeset:
> Modified: trunk/uClibc/extra/scripts/getent
> ===================================================================
> --- trunk/uClibc/extra/scripts/getent 2006-01-27 00:08:15 UTC (rev 13630)
> +++ trunk/uClibc/extra/scripts/getent 2006-01-27 05:22:43 UTC (rev 13631)
> @@ -65,8 +65,7 @@
> esac
>
> if [ -z "$2" ] ; then
> - cat $file
> - retval=$?
> + exec cat $file
> else
> search_entry "$file" "$2"
> fi
you loose $retval, please adapt then the whole file to get it return the
same as glibc
Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list