=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.76 retrieving revision 1.77 diff -u -r1.76 -r1.77 --- openbsd/update_openbsd/update_openbsd 2015/05/03 00:27:53 1.76 +++ openbsd/update_openbsd/update_openbsd 2015/05/03 01:11:52 1.77 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.75 2015/05/02 23:27:01 andrew Exp $ +# $AFresh1: update_openbsd,v 1.76 2015/05/02 23:27:53 andrew Exp $ # # Copyright (c) 2012 Andrew Fresh # @@ -257,9 +257,7 @@ local _file=$1 # This could go circular, but I dunno how to fix that. if [ -h $_file ]; then - follow_symlink $( file $_file | - grep 'symbolic link' | - sed -e s/^.*\\\`// -e s/\\\'\$// ) + follow_symlink $( readlink -f $_file ) else echo $_file fi