linux installer: better error message for missing /tmp
authorGeorge David <george@miamisalsa.com>
Mon, 21 Jun 2010 22:16:58 +0000 (16:16 -0600)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 21 Jun 2010 22:48:29 +0000 (15:48 -0700)
commit316baa765d85a91cd89585ea5cf913bcd2e478a5
tree23cde83416b58cb357a0b9f3df74a519c9e8f4d5
parent2f712545dd82f5906ec930b643d44e8b12295682
linux installer: better error message for missing /tmp

Our linux distribution at my job didn't include a /tmp directory. When ever
I tried to use syslinux, I would get the following error:

./syslinux: No such file or directory

I modified the code to report this:

./syslinux: Cannot access the /tmp/ directory.

This would have helped me a lot rather than having to download the source
and run it through the debugger to figure out that my /tmp/ directory was
missing. I suspect if this ever happens again I'll know exactly what was
wrong, but hopefully it will help someone else.
linux/syslinux.c