maint: fix typos in the code

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-06-01 17:45:46 +02:00
parent 4139bb82a7
commit bda4e480d2
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@
#define O_BINARY _O_BINARY #define O_BINARY _O_BINARY
#endif #endif
#ifdef __BEOS__ #ifdef __BEOS__
/* BeOS 5 has O_BINARY, but is has no effect. */ /* BeOS 5 has O_BINARY, but it has no effect. */
#undef O_BINARY #undef O_BINARY
#endif #endif
/* On reasonable systems, binary I/O is the default. */ /* On reasonable systems, binary I/O is the default. */

View File

@ -703,7 +703,7 @@ vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linknam
if (strlen (p) <= 8 || p[8] != ']') if (strlen (p) <= 8 || p[8] != ']')
goto error; goto error;
/* Should parse here the Notwell permissions :) */ /* Should parse here the Novell permissions :) */
if (S_ISDIR (s->st_mode)) if (S_ISDIR (s->st_mode))
s->st_mode |= (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IXUSR | S_IXGRP | S_IXOTH); s->st_mode |= (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IXUSR | S_IXGRP | S_IXOTH);
else else

View File

@ -456,7 +456,7 @@ cpio_create_entry (struct vfs_class *me, struct vfs_s_super *super, struct stat
if (entry != NULL) if (entry != NULL)
{ {
/* This shouldn't happen! (well, it can happen if there is a record for a /* This shouldn't happen! (well, it can happen if there is a record for a
file and than a record for a directory it is in; cpio would die with file and then a record for a directory it is in; cpio would die with
'No such file or directory' is such case) */ 'No such file or directory' is such case) */
if (!S_ISDIR (entry->ino->st.st_mode)) if (!S_ISDIR (entry->ino->st.st_mode))