https://github.com/zedshaw/learn-c-the-hard-way-lectures/blob/56b2570e6ec348830b86561086086122fc35ab74/ex41/devpkg/commands.c#L98 The options provided to tar are meant for dealing with gzip format, not bz2. If a fetch is executed against a bz2 file, then the program will fail to extract it properly.