/[inetutils]/inetutils/ftpd/ftpd.c
ViewVC logotype

Diff of /inetutils/ftpd/ftpd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.49 by ams, Sun Apr 28 17:00:08 2002 UTC revision 1.50 by ams, Mon Apr 29 20:42:50 2002 UTC
# Line 1  Line 1 
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
# Line 115  static char sccsid[] = "@(#)ftpd.c     8.5 ( Line 115  static char sccsid[] = "@(#)ftpd.c     8.5 (
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
# Line 320  usage (int err) Line 319  usage (int err)
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  }  }
# Line 423  main(int argc, char *argv[], char **envp Line 422  main(int argc, char *argv[], char **envp
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 '?':
# Line 536  main(int argc, char *argv[], char **envp Line 535  main(int argc, char *argv[], char **envp
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    
# Line 1422  statcmd (void) Line 1421  statcmd (void)
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));

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26