[9159] in Athena Bugs

home help back first fref pref prev next nref lref last post

rt 7.3P: users(1)

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Thu Apr 2 14:13:08 1992

Date: Thu, 2 Apr 92 14:12:50 -0500
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: bugs@Athena.MIT.EDU

System name:		pit-manager
Type and version:	RTPC-ROMPC 7.3P
Display type:		apa16
			megapel

What were you trying to do?
	Use the exit value of users(1) to figure out whether or not it
	failed.

What's wrong:
	It exits with non-zero status even if there is a problem.

What should have happened:
	It should exit with a status of zero if there is no problem.

Please describe any relevant documentation references:
*** /source/bsd-4.3/common/ucb/users.c	Sat Jan 11 14:42:04 1986
--- users.c	Thu Apr  2 14:11:32 1992
***************
*** 46,51 ****
--- 46,52 ----
  		putline();
  	}
  	summary();
+ 	exit(0);
  }
  
  char	*names[128];

home help back first fref pref prev next nref lref last post