View | Details | Raw Unified | Return to bug 67142
Collapse All | Expand All

(-)yppasswdd_server.c (-2 / +2 lines)
Lines 196-207 Link Here
196
	 * Don't allow the user to shoot himself in the foot,
196
	 * Don't allow the user to shoot himself in the foot,
197
	 * even on purpose.
197
	 * even on purpose.
198
	 */
198
	 */
199
	if (!ok_shell(npw->pw_shell)) {
199
	if (!no_chsh && !ok_shell(npw->pw_shell)) {
200
		yp_error("%s is not a valid shell", npw->pw_shell);
200
		yp_error("%s is not a valid shell", npw->pw_shell);
201
		return(1);
201
		return(1);
202
	}
202
	}
203
203
204
	if (validchars(npw->pw_shell)) {
204
	if (!no_chsh && validchars(npw->pw_shell)) {
205
		yp_error("specified shell contains invalid characters");
205
		yp_error("specified shell contains invalid characters");
206
		return(1);
206
		return(1);
207
	}
207
	}

Return to bug 67142