From: Bradley Nicholes Date: Wed, 25 Jul 2001 15:08:04 +0000 (+0000) Subject: Added calls to the name space functions to enable long file names for NetWare. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77ef04930b5aba933ca022f0ffea30ed0405f93f;p=thirdparty%2Fapache%2Fhttpd.git Added calls to the name space functions to enable long file names for NetWare. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@89707 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/support/htdigest.c b/src/support/htdigest.c index 10feec95ec8..a1a0c8f14fc 100644 --- a/src/support/htdigest.c +++ b/src/support/htdigest.c @@ -222,6 +222,11 @@ int main(int argc, char *argv[]) if (argc == 5) { if (strcmp(argv[1], "-c")) usage(); +#ifdef NETWARE + UnAugmentAsterisk(TRUE); + SetCurrentNameSpace(NW_NS_LONG); + SetTargetNameSpace(NW_NS_LONG); +#endif if (!(tfp = fopen(argv[2], "w"))) { fprintf(stderr, "Could not open passwd file %s for writing.\n", argv[2]); diff --git a/src/support/htpasswd.c b/src/support/htpasswd.c index 1b24d022528..7e262cef8e4 100644 --- a/src/support/htpasswd.c +++ b/src/support/htpasswd.c @@ -437,6 +437,11 @@ int main(int argc, char *argv[]) if ((argc - i) != args_left) { return usage(); } +#ifdef NETWARE + UnAugmentAsterisk(TRUE); + SetCurrentNameSpace(NW_NS_LONG); + SetTargetNameSpace(NW_NS_LONG); +#endif if (newfile && nofile) { fprintf(stderr, "%s: -c and -n options conflict\n", argv[0]); return ERR_SYNTAX;