+++ This bug was initially created as a clone of Bug #980372 +++ +++ This bug was initially created as a clone of Bug #905322 +++ Test script. You will need 'minimal' from https://github.com/libguestfs/hivex/blob/master/images/minimal and note that you have to uncomment only *one* of the three hivex-commit lines in the script. guestfish -x -N fs -m /dev/sda1 <<EOF upload /mnt/scratch/minimal /minimal hivex-open /minimal write:true #hivex-commit "" #hivex-commit "/minimal" hivex-commit "minimal" EOF The first case (NULL) should always succeed and it does. The second case (absolute path "/minimal") should succeed and it does. The third case (relative path "minimal") should fail because relative paths shouldn't be allowed. It doesn't fail, so that is a bug. Tested on libguestfs-1.23.7-1.fc20.x86_64
Upstream fix: https://github.com/libguestfs/libguestfs/commit/c8f0a2eb76a39a009e0591f73e5249f3bcfc4ee8