www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregory Shapiro <gshap...@wpi.edu>
Subject general/1251: Compiler warning compiling support/htpasswd.c
Date Sun, 19 Oct 1997 01:45:22 GMT

>Number:         1251
>Category:       general
>Synopsis:       Compiler warning compiling support/htpasswd.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Oct 18 18:50:00 PDT 1997
>Last-Modified:
>Originator:     gshapiro@wpi.edu
>Organization:
apache
>Release:        1.3b2
>Environment:
SunOS monkeyboy.sendmail.org 5.6 Generic sun4m sparc SUNW,SPARCstation-5
>Description:
Compiling htpasswd.c gets:

gcc -O2 -DSOLARIS2=260 -DSTATUS -I/usr/local/lib htpasswd.c -o htpasswd -lsocke\
t -lnsl -lpthread -ldb
htpasswd.c: In function `add_password':
htpasswd.c:125: warning: assignment makes pointer from integer without a caset
>How-To-Repeat:

>Fix:
A patch:

*** htpasswd.c~orig      Sat Oct 18 21:33:50 1997
--- htpasswd.c           Sat Oct 18 21:33:02 1997
***************
*** 112,117 ****
--- 112,118 ----
  void add_password(char *user, FILE *f)
  {
      char *pw, *cpw, salt[3];
+     extern char *crypt(char *, char *);

      pw = strd((char *) getpass("New password:"));
      if (strcmp(pw, (char *) getpass("Re-type new password:"))) {
%0
>Audit-Trail:
>Unformatted:


Mime
View raw message