[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1055694: klibc-utils: Patch to fix cp warning



Hi,

On 2023-12-07 10:43:23 +0100, Mario Izquierdo (mariodebian) wrote:
> I found a small typo in initramfs-tools klibc-utils script:
> 
> # diff -ur klibc-utils /usr/share/initramfs-tools/hooks/klibc-utils
> --- klibc-utils	2023-12-07 10:35:52.738502916 +0100
> +++ /usr/share/initramfs-tools/hooks/klibc-utils	2023-12-07 10:36:02.686695427 +0100
> @@ -27,7 +27,7 @@
>  		;;
>  	*)
>  		# Don't install commands that already exist in /bin or /sbin
> -		if ! [ -e "${DESTDIR}/sbin/$command" ]; then
> +		if ! [ -e "${DESTDIR}/bin/$command" ]; then
>  			cp -pnL "$src" "${DESTDIR}/bin"
>  		fi
>  		;;

But the code doesn't match the comment ("in /bin or /sbin").
What is actually expected?

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: