www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barry James <barry_ja...@ftdetrck-ccmail.army.mil>
Subject os-hpux/3945: htpasswd uses tmpnam which causes problem on HPUX
Date Mon, 22 Feb 1999 22:29:45 GMT

>Number:         3945
>Category:       os-hpux
>Synopsis:       htpasswd uses tmpnam which causes problem on HPUX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Feb 22 14:30:00 PST 1999
>Originator:     barry_james@ftdetrck-ccmail.army.mil
>Release:        1.3.1
HP-UX B.11.00
gcc 2.8.1
htpasswd.c calls tmpnam(NULL) which is okay if not compiled with multithreading
but causes a problem if compiled with -lpthread (Message is "Could not open temp
file".).  Changing tmpnam(NULL) to tempnam(NULL, NULL) appears to correct the
Compile with -lpthread and run htpasswd against an existing entry
Suggested fix - use tempnam(NULL, NULL) instead of tmpnam(NULL)
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]

View raw message