Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/xcvs/dist/src Check group membership correctly...
details: https://anonhg.NetBSD.org/src/rev/aa3107958faf
branches: trunk
changeset: 747183:aa3107958faf
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Sep 05 06:18:55 2009 +0000
description:
Check group membership correctly; ingroup() returns a truth value, not a gid.
PR bin/41995.
diffstat:
external/gpl2/xcvs/dist/src/filesubr.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r 5f29cd94b400 -r aa3107958faf external/gpl2/xcvs/dist/src/filesubr.c
--- a/external/gpl2/xcvs/dist/src/filesubr.c Sat Sep 05 06:15:24 2009 +0000
+++ b/external/gpl2/xcvs/dist/src/filesubr.c Sat Sep 05 06:18:55 2009 +0000
@@ -282,8 +282,7 @@
omask |= S_IXOTH;
}
- mask = sb.st_uid == uid ? umask : sb.st_gid == ingroup(sb.st_gid) ?
- gmask : omask;
+ mask = sb.st_uid == uid ? umask : ingroup(sb.st_gid) ? gmask : omask;
if ((sb.st_mode & mask) == mask)
return true;
errno = EACCES;
Home |
Main Index |
Thread Index |
Old Index