]> granicus.if.org Git - shadow/blobdiff - src/chsh.c
* src/chsh.c: No needto remove lines tarting with '#' from
[shadow] / src / chsh.c
index 553fe5c3b85cc2e781c33c1ad52febbe6856a45e..a2e8fe7f974451d1d4af241ed9f0d39a7f4d9cfd 100644 (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;