From ef1ca17e584230d9c70f31ac991549adede09839 Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Thu, 1 Aug 2024 16:53:52 -0700 Subject: [PATCH] Add EISNAM to linuxHostTranslations and fix error message for ENOTNAM. Reported-by: syzbot+2817f67abeaf8fca4427@syzkaller.appspotmail.com PiperOrigin-RevId: 658584815 --- pkg/syserr/host_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/syserr/host_linux.go b/pkg/syserr/host_linux.go index 77c213c7e..20b023a4e 100644 --- a/pkg/syserr/host_linux.go +++ b/pkg/syserr/host_linux.go @@ -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)