* src/chsh.c: No needto remove lines tarting with '#' from

/etc/shells. This is already done by getusershell() and these
	shell would fail the access(X_OK) test.
This commit is contained in:
nekral-guest 2011-09-18 17:24:15 +00:00
parent 0d00d3eecf
commit 75936bf9f7
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2011-09-18 Nicolas François <nicolas.francois@centraliens.net>
* src/chsh.c: No needto remove lines tarting with '#' from
/etc/shells. This is already done by getusershell() and these
shell would fail the access(X_OK) test.
2011-09-18 Nicolas François <nicolas.francois@centraliens.net>
* man/generate_mans.mak: Fix the generation of translated man

View File

@ -2,7 +2,7 @@
* Copyright (c) 1989 - 1994, Julianne Frances Haugh
* Copyright (c) 1996 - 2000, Marek Michałkiewicz
* Copyright (c) 2001 - 2006, Tomasz Kłoczko
* Copyright (c) 2007 - 2008, Nicolas François
* Copyright (c) 2007 - 2011, Nicolas François
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -161,10 +161,6 @@ static bool shell_is_listed (const char *sh)
#ifdef HAVE_GETUSERSHELL
setusershell ();
while ((cp = getusershell ())) {
if (*cp == '#') {
continue;
}
if (strcmp (cp, sh) == 0) {
found = true;
break;