GSoC/GCI Archive
Google Code-in 2012 The NetBSD Project

Repair vnconfig(8)'s return codes

completed by: Philip Hayes

mentors: Radoslaw Kujawa, Julian Coleman, Julian Fagir

vnconfig(8) is a tool to create virtual disk images. There was a (not officially filed) bug report that it sometimes returns success although it fails:

qemu# vnconfig vnd0 not_existent_file ; echo $? ;: bad
vnconfig: not_existent_file: No such file or directory
qemu# vnconfig vnd0 existent_file ; echo $? ;: good


In this task, you will go through the whole work of fixing a bug: You have to analyze the situation, find the source of that bug in the code, and finally fix it.