Add EISNAM to linuxHostTranslations and fix error message for ENOTNAM.

Reported-by: syzbot+2817f67abeaf8fca4427@syzkaller.appspotmail.com
PiperOrigin-RevId: 658584815
This commit is contained in:
Ayush Ranjan
2024-08-01 16:57:38 -07:00
committed by gVisor bot
parent 3c98aab6f8
commit ef1ca17e58
+2 -1
View File
@@ -81,7 +81,8 @@ var (
ErrShouldRestart = newWithHost("interrupted system call should be restarted", errno.ERESTART, unix.ERESTART)
ErrStreamPipe = newWithHost("streams pipe error", errno.ESTRPIPE, unix.ESTRPIPE)
ErrStructureNeedsCleaning = newWithHost("structure needs cleaning", errno.EUCLEAN, unix.EUCLEAN)
ErrIsNamedFile = newWithHost("is a named type file", errno.ENOTNAM, unix.ENOTNAM)
ErrIsNotNamedFile = newWithHost("not a XENIX named type file", errno.ENOTNAM, unix.ENOTNAM)
ErrIsNamedFile = newWithHost("is a named type file", errno.EISNAM, unix.EISNAM)
ErrRemoteIO = newWithHost("remote I/O error", errno.EREMOTEIO, unix.EREMOTEIO)
ErrNoMedium = newWithHost("no medium found", errno.ENOMEDIUM, unix.ENOMEDIUM)
ErrWrongMediumType = newWithHost("wrong medium type", errno.EMEDIUMTYPE, unix.EMEDIUMTYPE)