+2006-09-26 Jim Meyering <jim@meyering.net>
+
+ * NEWS: Mention the bug fix.
+ * src/groups.sh: Don't hide a write failure.
+ Reported by Iain Calder <ic56@rogers.com>.
+
2006-09-25 Jim Meyering <jim@meyering.net>
* src/chown.c (usage): Clarify --dereference description.
With --verbose (-v), cp and mv would sometimes generate no output,
or neglect to report file removal.
+ "groups user" now exits nonzero when it gets a write error.
+
+
* Major changes in release 6.2 (2006-09-18) [stable candidate]
** Changes in behavior
#!/bin/sh
# groups -- print the groups a user is in
-# Copyright (C) 1991, 1997, 2000, 2002, 2004 Free Software Foundation, Inc.
+# Copyright (C) 1991, 1997, 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
groups=`id -Gn -- $name`
status=$?
if test $status = 0; then
- echo $name : $groups
+ echo $name : $groups || fail=1
else
fail=$status
fi