The bogus code in swapon.c is: extern errno; extern char *sys_errlist[]; printf("%s: %s\n", sys_errlist[errno]); We just changed it to perror(fsp->fs_spec);