Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/msdosfs msdosfs_setattr(): silently ignore uid/gid chang...



details:   https://anonhg.NetBSD.org/src/rev/738f7574e025
branches:  trunk
changeset: 495297:738f7574e025
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Jul 25 22:15:00 2000 +0000

description:
msdosfs_setattr(): silently ignore uid/gid changes, instead
of returning EINVAL
This fixes bin/9990 by Thomas Klausner.

diffstat:

 sys/msdosfs/msdosfs_vnops.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 0a891ac796c5 -r 738f7574e025 sys/msdosfs/msdosfs_vnops.c
--- a/sys/msdosfs/msdosfs_vnops.c       Tue Jul 25 21:53:55 2000 +0000
+++ b/sys/msdosfs/msdosfs_vnops.c       Tue Jul 25 22:15:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_vnops.c,v 1.100 2000/07/25 20:56:10 jdolecek Exp $     */
+/*     $NetBSD: msdosfs_vnops.c,v 1.101 2000/07/25 22:15:00 jdolecek 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