bobvan (09/14/82)
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 <sys/types.h>, <sys/stat.h>, 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)