Skip to content

Commit

Permalink
filelist2content: Fix serious bug in symlink handling
Browse files Browse the repository at this point in the history
Use image directory files to get symlinkdestination via readlink
and not the fiules currently installe din the system.

all CONTENT files generated so far containing symlinks are broken.

8(
  • Loading branch information
mariux committed Jun 19, 2012
1 parent 19503aa commit e2d4677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filelist2content.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function do_f2c() {

echo -n ":md5=${md5%% *}"
elif [ "${type}" = "symlink" ] ; then
file="${file}//$(readlink ${file})"
file="${file}//$(readlink ${root}${file})"
elif [ "${type}" = "block" -o "${type}" = "char" ] ; then
echo -n ":major=${major}"
echo -n ":minor=${minor}"
Expand Down

0 comments on commit e2d4677

Please sign in to comment.