pw_scan.c (5964) | pw_scan.c (8857) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 115 unchanged lines hidden (view full) --- 124 p = pw->pw_shell; 125 if (root && *p) /* empty == /bin/sh */ 126 for (setusershell();;) { 127 if (!(sh = getusershell())) { 128 warnx("warning, unknown root shell"); 129 break; 130 } 131 if (!strcmp(p, sh)) | 1/*- 2 * Copyright (c) 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 115 unchanged lines hidden (view full) --- 124 p = pw->pw_shell; 125 if (root && *p) /* empty == /bin/sh */ 126 for (setusershell();;) { 127 if (!(sh = getusershell())) { 128 warnx("warning, unknown root shell"); 129 break; 130 } 131 if (!strcmp(p, sh)) |
132 break; | 132 break; |
133 } 134 if(p[0]) pw->pw_fields |= _PWF_SHELL; 135 136 if (p = strsep(&bp, ":")) { /* too many */ 137fmt: warnx("corrupted entry"); 138 return (0); 139 } 140 return (1); 141} | 133 } 134 if(p[0]) pw->pw_fields |= _PWF_SHELL; 135 136 if (p = strsep(&bp, ":")) { /* too many */ 137fmt: warnx("corrupted entry"); 138 return (0); 139 } 140 return (1); 141} |