diff options
author | paul <paul> | 2003-08-13 04:54:44 +0200 |
---|---|---|
committer | paul <paul> | 2003-08-13 04:54:44 +0200 |
commit | 42053f4e3a0bb8d4e2df7c9d626629cc14dfc285 (patch) | |
tree | 68e2d21637f3e61b7ab3bf6cf4cebe69063fdaaf | |
parent | 2003-08-13 Paul Jakma <paul@dishone.st> (diff) | |
download | frr-42053f4e3a0bb8d4e2df7c9d626629cc14dfc285.tar.xz frr-42053f4e3a0bb8d4e2df7c9d626629cc14dfc285.zip |
2003-08-13 Paul Jakma <paul@dishone.st>
* lib/version.h: Add QUAGGA_PROGNAME
* lib/smux.c: hardcoded zebra/quagga -> QUAGGA_PROGNAME
* lib/command.c: ditto
* vtysh/vtysh_user.c: ditto
-rw-r--r-- | lib/command.c | 2 | ||||
-rw-r--r-- | lib/smux.c | 2 | ||||
-rw-r--r-- | lib/version.h | 2 | ||||
-rw-r--r-- | vtysh/vtysh_user.c | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/lib/command.c b/lib/command.c index 71db3aa16..e8c9203f4 100644 --- a/lib/command.c +++ b/lib/command.c @@ -39,7 +39,7 @@ struct host host; /* Default motd string. */ char *default_motd = "\r\n\ -Hello, this is quagga (version " QUAGGA_VERSION ").\r\n\ +Hello, this is " QUAGGA_PROGNAME " (version " QUAGGA_VERSION ").\r\n\ Copyright 1996-2002 Kunihiro Ishiguro.\r\n\ \r\n"; diff --git a/lib/smux.c b/lib/smux.c index 2062b8773..ddb8bfeca 100644 --- a/lib/smux.c +++ b/lib/smux.c @@ -952,7 +952,7 @@ smux_open (int sock) u_char *ptr; int len; u_long version; - u_char progname[] = "quagga-" QUAGGA_VERSION; + u_char progname[] = QUAGGA_PROGNAME "-" QUAGGA_VERSION; if (debug_smux) { diff --git a/lib/version.h b/lib/version.h index 84df21c63..f0387f0b6 100644 --- a/lib/version.h +++ b/lib/version.h @@ -22,6 +22,8 @@ #ifndef _ZEBRA_VERSION_H #define _ZEBRA_VERSION_H +#define QUAGGA_PROGNAME "quagga" + #define QUAGGA_VERSION "0.96" #define ZEBRA_BUG_ADDRESS "bug-zebra@gnu.org" diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c index ecbe0f4c1..8698f8fad 100644 --- a/vtysh/vtysh_user.c +++ b/vtysh/vtysh_user.c @@ -51,7 +51,7 @@ vtysh_pam (char *user) pam_handle_t *pamh = NULL; /* Start PAM. */ - ret = pam_start("zebra", user, &conv, &pamh); + ret = pam_start(QUAGGA_PROGNAME, user, &conv, &pamh); /* printf ("ret %d\n", ret); */ /* Is user really user? */ |