FreeBSD Bugzilla – Attachment 13449 Details for
Bug 25598
patch to let ftpd(8) output message when changing directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 678 bytes, created by
Bernd Luevelsmeyer
on 2001-03-08 02:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Bernd Luevelsmeyer
Created:
2001-03-08 02:10:01 UTC
Size:
678 bytes
patch
obsolete
>--- libexec/ftpd/ftpd.c.orig Thu Mar 8 02:34:14 2001 >+++ libexec/ftpd/ftpd.c Thu Mar 8 02:44:38 2001 >@@ -2170,7 +2170,22 @@ > if (chdir(path) < 0) > perror_reply(550, path); > else >+ { >+ char line[LINE_MAX]; >+ FILE *fd; >+ if ((fd = fopen(".message", "r")) != NULL) >+ { >+ while (fgets(line, sizeof(line), fd) != NULL) >+ { >+ char *cp; >+ if ((cp = strchr(line, '\n')) != NULL) >+ *cp = '\0'; >+ lreply(250, "%s", line); >+ } >+ fclose(fd); >+ } > ack("CWD"); >+ } > } > > void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25598
: 13449