1 |
/* - Ftp Server |
/* - Ftp Server |
2 |
* Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994 |
* Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994, 2002 |
3 |
* The Regents of the University of California. All rights reserved. |
* The Regents of the University of California. All rights reserved. |
4 |
* |
* |
5 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
115 |
#include <glob.h> |
#include <glob.h> |
116 |
|
|
117 |
#include "extern.h" |
#include "extern.h" |
|
#include "version.h" |
|
118 |
|
|
119 |
#ifndef LINE_MAX |
#ifndef LINE_MAX |
120 |
# define LINE_MAX 2048 |
# define LINE_MAX 2048 |
319 |
opie"); |
opie"); |
320 |
#endif |
#endif |
321 |
|
|
322 |
fprintf (stdout, "\nSubmit bug reports to %s.\n", inetutils_bugaddr); |
fprintf (stdout, "\nSubmit bug reports to %s.\n", PACKAGE_BUGREPORT); |
323 |
} |
} |
324 |
exit (err); |
exit (err); |
325 |
} |
} |
422 |
/* Not reached. */ |
/* Not reached. */ |
423 |
|
|
424 |
case 'V': /* Version. */ |
case 'V': /* Version. */ |
425 |
printf ("ftpd (%s) %s\n", inetutils_package, inetutils_version); |
printf ("ftpd (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION); |
426 |
exit (0); |
exit (0); |
427 |
|
|
428 |
case '?': |
case '?': |
535 |
/* Tell them we're ready to roll. */ |
/* Tell them we're ready to roll. */ |
536 |
if (!no_version) |
if (!no_version) |
537 |
reply (220, "%s FTP server (%s %s) ready.", |
reply (220, "%s FTP server (%s %s) ready.", |
538 |
hostname, inetutils_package, inetutils_version); |
hostname, PACKAGE_NAME, PACKAGE_VERSION); |
539 |
else |
else |
540 |
reply (220, "%s FTP server ready.", hostname); |
reply (220, "%s FTP server ready.", hostname); |
541 |
|
|
1421 |
lreply (211, "%s FTP server status:", hostname); |
lreply (211, "%s FTP server status:", hostname); |
1422 |
if (!no_version) |
if (!no_version) |
1423 |
printf (" ftpd (%s) %s\r\n", |
printf (" ftpd (%s) %s\r\n", |
1424 |
inetutils_package, inetutils_version); |
PACKAGE_NAME, PACKAGE_VERSION); |
1425 |
printf (" Connected to %s", cred.remotehost); |
printf (" Connected to %s", cred.remotehost); |
1426 |
if (!isdigit (cred.remotehost[0])) |
if (!isdigit (cred.remotehost[0])) |
1427 |
printf (" (%s)", inet_ntoa (his_addr.sin_addr)); |
printf (" (%s)", inet_ntoa (his_addr.sin_addr)); |