--- gs_adduser.c.orig Mon Feb 1 12:36:42 1999 +++ gs_adduser.c Mon Feb 1 12:36:21 1999 @@ -155,6 +155,8 @@ if (( passwd_file = fopen(pwd_name, "r")) != NULL){ while ( ( !feof(passwd_file) ) && ( allow_flag != 0 )){ fgets(buff, BUF_SIZE, passwd_file); + /* minor bug in gs_adduser fixed by Michail Vidiassov */ + if (feof(passwd_file)) break; strncpy(tmp_buff, strtok( buff, ":"), BUF_SIZE); allow_flag = strcmp(tmp_buff, user_name); }