wok rev 14245

posixovl: fix symlink size
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 23 19:33:01 2013 +0100 (2013-03-23)
parents 890ca8bf8a3a
children da018658b8df
files posixovl/receipt
line diff
     1.1 --- a/posixovl/receipt	Sat Mar 23 14:31:05 2013 +0100
     1.2 +++ b/posixovl/receipt	Sat Mar 23 19:33:01 2013 +0100
     1.3 @@ -17,6 +17,9 @@
     1.4  {
     1.5  	mv $PACKAGE $src 2> /dev/null
     1.6  	cd $src
     1.7 +	grep -q 'else if (!S_ISREG' posixovl.c ||
     1.8 +	sed -i 's/if (!S_ISREG/if (S_ISLNK(cb->ll.mode))\n\t\tcb->sb.st_size = strlen(cb->ll.target);\n\telse &/' posixovl.c
     1.9 +	sed -i 's/cb->ll.size/0/' posixovl.c
    1.10  	sh autogen.sh
    1.11  	./configure --prefix=/usr --mandir=/usr/share/man \
    1.12  	$CONFIGURE_ARGS &&