util-linux/util-linux-2.11y-chsh-103004.patch
cvsdist 55e217f6f2 auto-import changelog data from util-linux-2.11y-29.src.rpm
Fri Sep 05 2003 Elliot Lee <sopwith@redhat.com> 2.11y-28
- Fix #103004, #103954
Fri Sep 05 2003 Dan Walsh <dwalsh@redhat.com> 2.11y-27
- turn off selinux
Thu Sep 04 2003 Dan Walsh <dwalsh@redhat.com> 2.11y-26.sel
- build with selinux
Mon Aug 11 2003 Elliot Lee <sopwith@redhat.com> 2.11y-25
- Use urandom instead for mkcramfs
Tue Jul 29 2003 Dan Walsh <dwalsh@redhat.com> 2.11y-24
- add SELINUX 2.5 support
Wed Jul 23 2003 Elliot Lee <sopwith@redhat.com> 2.11y-22
- #100433 patch
Sat Jun 14 2003 Elliot Lee <sopwith@redhat.com> 2.11y-20
- #97381 patch
Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt
Mon Apr 21 2003 Elliot Lee <sopwith@redhat.com> 2.11y-17
- Change patch128 to improve ipcs -l
Fri Apr 11 2003 Elliot Lee <sopwith@redhat.com> 2.11y-16
- Fix #85407
Fri Apr 11 2003 Elliot Lee <sopwith@redhat.com> 2.11y-15
- Change patch128 to util-linux-2.11f-ipcs-84243-86285.patch to get all
    ipcs fixes
2004-09-13 20:57:50 +00:00

20 lines
568 B
Diff

--- util-linux-2.11y/login-utils/chsh.c.sopwith Fri Sep 5 08:51:49 2003
+++ util-linux-2.11y/login-utils/chsh.c Fri Sep 5 08:53:43 2003
@@ -185,7 +185,6 @@
printf (_("Shell not changed.\n"));
return 0;
}
- if (!strcmp(shell, "/bin/sh")) shell = "";
pw->pw_shell = shell;
if (setpwnam (pw) < 0) {
perror ("setpwnam");
@@ -299,6 +298,8 @@
check_shell (char *shell) {
int i, c;
+ if (! *shell) shell = "/bin/sh"; /* Fudge it */
+
if (*shell != '/') {
printf (_("%s: shell must be a full path name.\n"), whoami);
return (-1);