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

(-)libexec/ftpd/ftpd.c (+15 lines)
Lines 2170-2176 Link Here
2170
	if (chdir(path) < 0)
2170
	if (chdir(path) < 0)
2171
		perror_reply(550, path);
2171
		perror_reply(550, path);
2172
	else
2172
	else
2173
        {
2174
            char line[LINE_MAX];
2175
            FILE *fd;
2176
            if ((fd = fopen(".message", "r")) != NULL)
2177
            {
2178
                while (fgets(line, sizeof(line), fd) != NULL)
2179
                {
2180
                    char *cp;
2181
                    if ((cp = strchr(line, '\n')) != NULL)
2182
                        *cp = '\0';
2183
                    lreply(250, "%s", line);
2184
                }
2185
                fclose(fd);
2186
            }
2173
		ack("CWD");
2187
		ack("CWD");
2188
        }
2174
}
2189
}
2175
2190
2176
void
2191
void

Return to bug 25598