Page MenuHomeFreeBSD

D10690.1796001640.diff
No OneTemporary

Authored By
Unknown
Size
677 B
Referenced Files
None
Subscribers
None

D10690.1796001640.diff

Index: head/lib/libc/gen/getusershell.c
===================================================================
--- head/lib/libc/gen/getusershell.c
+++ head/lib/libc/gen/getusershell.c
@@ -115,8 +115,8 @@
if ((fp = fopen(_PATH_SHELLS, "re")) == NULL)
return NS_UNAVAIL;
- cp = line;
- while (fgets(cp, MAXPATHLEN + 1, fp) != NULL) {
+ while (fgets(line, MAXPATHLEN + 1, fp) != NULL) {
+ cp = line;
while (*cp != '#' && *cp != '/' && *cp != '\0')
cp++;
if (*cp == '#' || *cp == '\0')
@@ -124,7 +124,7 @@
sp = cp;
while (!isspace(*cp) && *cp != '#' && *cp != '\0')
cp++;
- *cp++ = '\0';
+ *cp = '\0';
sl_add(sl, strdup(sp));
}
(void)fclose(fp);

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 30, 1:20 AM (17 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42098824
Default Alt Text
D10690.1796001640.diff (677 B)

Event Timeline