Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/msdosfs Pull up revision 1.101 (requested by jdolec...
details: https://anonhg.NetBSD.org/src/rev/2f73585e5a0a
branches: netbsd-1-4
changeset: 470807:2f73585e5a0a
user: he <he%NetBSD.org@localhost>
date: Thu Jul 27 17:43:09 2000 +0000
description:
Pull up revision 1.101 (requested by jdolecek):
Silently ignore uid/gid changes, instead of returning EINVAL.
Fixes PR#9990.
diffstat:
sys/msdosfs/msdosfs_vnops.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r c470f67cfa80 -r 2f73585e5a0a sys/msdosfs/msdosfs_vnops.c
--- a/sys/msdosfs/msdosfs_vnops.c Thu Jul 27 17:41:14 2000 +0000
+++ b/sys/msdosfs/msdosfs_vnops.c Thu Jul 27 17:43:09 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_vnops.c,v 1.79.2.8 2000/07/27 17:41:14 he Exp $ */
+/* $NetBSD: msdosfs_vnops.c,v 1.79.2.9 2000/07/27 17:43:09 he Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -364,19 +364,19 @@
printf("msdosfs_setattr(): vp %p, vap %p, cred %p, p %p\n",
ap->a_vp, vap, cred, ap->a_p);
#endif
+ /*
+ * Note we silently ignore uid or gid changes.
+ */
if ((vap->va_type != VNON) || (vap->va_nlink != (nlink_t)VNOVAL) ||
(vap->va_fsid != VNOVAL) || (vap->va_fileid != VNOVAL) ||
(vap->va_blocksize != VNOVAL) || (vap->va_rdev != VNOVAL) ||
- (vap->va_bytes != VNOVAL) || (vap->va_gen != VNOVAL) ||
- (vap->va_uid != VNOVAL) || (vap->va_gid != VNOVAL)) {
+ (vap->va_bytes != VNOVAL) || (vap->va_gen != VNOVAL)) {
#ifdef MSDOSFS_DEBUG
printf("msdosfs_setattr(): returning EINVAL\n");
printf(" va_type %d, va_nlink %x, va_fsid %lx, va_fileid %lx\n",
vap->va_type, vap->va_nlink, vap->va_fsid, vap->va_fileid);
printf(" va_blocksize %lx, va_rdev %x, va_bytes %qx, va_gen %lx\n",
vap->va_blocksize, vap->va_rdev, (long long)vap->va_bytes, vap->va_gen);
- printf(" va_uid %x, va_gid %x\n",
- vap->va_uid, vap->va_gid);
#endif
return (EINVAL);
}
Home |
Main Index |
Thread Index |
Old Index