From: utzoo!decvax!ittvax!tpdcvax!bobvan Newsgroups: net.bugs.4bsd Title: chsh bug Article-I.D.: tpdcvax.155 Posted: Tue Sep 14 10:17:29 1982 Received: Wed Sep 15 04:51:10 1982 Our 4.1BSD distribution tapes (serial 0297) have a bug in chsh. Code was recently added to stat(2) the shell object and refuse the change if the stat failed. As coded, the stat call had only one argument, causing it to fail. The fix is simply to #include, , declare a dummy buffer to hold the status, and add a second parameter to the stat call. Our previous Berkeley distribution did not have the stat call, and hence, no bug. If your chsh.c doesn't have a message about "%s unavailable", you probably have the older version that doesn't need this fix. Bob Van Valzah (...!decvax!ittvax!tpdcvax!bobvan)