httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sameer <sam...@c2.net>
Subject [PATCH] give a good error message for "htpasswd -c filename"
Date Wed, 19 Aug 1998 20:39:09 GMT
Index: htpasswd.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/support/htpasswd.c,v
retrieving revision 1.17
diff -c -u -r1.17 htpasswd.c
--- htpasswd.c  1998/07/13 11:32:58     1.17
+++ htpasswd.c  1998/08/19 20:38:15
@@ -175,6 +175,9 @@
     else if (argc != 3)
        usage();
 
+    if(!strcmp(argv[1], "-c"))
+       usage();
+
     tn = tmpnam(NULL);
     if (!(tfp = fopen(tn, "w+"))) {
        fprintf(stderr, "Could not open temp file.\n");

-- 
Sameer Parekh					Voice:   510-986-8770
President					FAX:     510-986-8777
C2Net
http://www.c2.net/				sameer@c2.net

Mime
View raw message