Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/common Explicitly mask mode returned in old stat ...
details: https://anonhg.NetBSD.org/src/rev/f0ad192c01d6
branches: trunk
changeset: 467828:f0ad192c01d6
user: wrstuden <wrstuden%NetBSD.org@localhost>
date: Tue Mar 30 00:13:57 1999 +0000
description:
Explicitly mask mode returned in old stat structure to 16 bits. Also correct
comment (we're converting from a new to an old struct stat).
diffstat:
sys/compat/common/vfs_syscalls_12.c | 6 +++---
sys/compat/common/vfs_syscalls_43.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 41e75fd65896 -r f0ad192c01d6 sys/compat/common/vfs_syscalls_12.c
--- a/sys/compat/common/vfs_syscalls_12.c Tue Mar 30 00:12:32 1999 +0000
+++ b/sys/compat/common/vfs_syscalls_12.c Tue Mar 30 00:13:57 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls_12.c,v 1.3 1997/10/19 01:52:51 mycroft Exp $ */
+/* $NetBSD: vfs_syscalls_12.c,v 1.4 1999/03/30 00:13:57 wrstuden Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -60,7 +60,7 @@
static void cvtstat __P((struct stat *, struct stat12 *));
/*
- * Convert from an old to a new stat structure.
+ * Convert from a new to an old stat structure.
*/
static void
cvtstat(st, ost)
@@ -70,7 +70,7 @@
ost->st_dev = st->st_dev;
ost->st_ino = st->st_ino;
- ost->st_mode = st->st_mode;
+ ost->st_mode = st->st_mode & 0xffff;
if (st->st_nlink >= (1 << 15))
ost->st_nlink = (1 << 15) - 1;
else
diff -r 41e75fd65896 -r f0ad192c01d6 sys/compat/common/vfs_syscalls_43.c
--- a/sys/compat/common/vfs_syscalls_43.c Tue Mar 30 00:12:32 1999 +0000
+++ b/sys/compat/common/vfs_syscalls_43.c Tue Mar 30 00:13:57 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls_43.c,v 1.10 1998/03/01 02:22:41 fvdl Exp $ */
+/* $NetBSD: vfs_syscalls_43.c,v 1.11 1999/03/30 00:13:57 wrstuden Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -77,7 +77,7 @@
ost->st_dev = st->st_dev;
ost->st_ino = st->st_ino;
- ost->st_mode = st->st_mode;
+ ost->st_mode = st->st_mode & 0xffff;
ost->st_nlink = st->st_nlink;
ost->st_uid = st->st_uid;
ost->st_gid = st->st_gid;
Home |
Main Index |
Thread Index |
Old Index