View | Details | Raw Unified | Return to bug 12828
Collapse All | Expand All

(-)pw_copy.c (+9 lines)
Lines 85-90 Link Here
85
				goto err;
85
				goto err;
86
			continue;
86
			continue;
87
		}
87
		}
88
		for (p = buf; *p != '\n'; p++)
89
			if (*p != ' ' && *p != '\t')
90
				break;
91
		if (*p == '#' || *p == '\n') {
92
			(void)fprintf(to, "%s", buf);
93
			if (ferror(to))
94
				goto err;
95
			continue;
96
		}
88
		if (!(p = strchr(buf, ':'))) {
97
		if (!(p = strchr(buf, ':'))) {
89
			warnx("%s: corrupted entry", _PATH_MASTERPASSWD);
98
			warnx("%s: corrupted entry", _PATH_MASTERPASSWD);
90
			pw_error(NULL, 0, 1);
99
			pw_error(NULL, 0, 1);

Return to bug 12828