nmh-workers
[Top] [All Lists]

bug report for nmh-0.27

1998-08-01 23:05:41

I am running an Ultrix 4.4 system and nmh-0.27 runs into a problem when
compiling because Ultrix does not have mkstemp. (As far as I can tell neither 
does Solaris). mkstemp is used in vsnprintf.

mktemp does exist on Ultrix and takes the same template as mkstemp appears
to. However, mktemp returns a char * while mkstemp appears to return an int.

Here is a diff of vsnprintf which allows it to work on my systerm.




metsny.yossi.com> diff snprintf2.c snprintf.c
45c45
<     if ((s = mkstemp(templ)) < 0)
---
    if ((s = mktemp(templ)) < 0)
50c50
<     if ((fp = fdopen(s, "w+")) == NULL) {
---
    if ((fp = fopen(s, "w+")) == NULL) {

-- 
[ ] C o l l e c t i v e  [ ] Yoseff Francus             
francus(_at_)yossi(_dot_)com
|__                      __| Work:                      212-513-7777
   []   Technologies   []    Home:  NY                  212-666-3220
      a pencom company              Boston              617-547-7843
                             Pager  (800)-759-8888 PIN 249-5583
                             francus(_at_)colltech(_dot_)com
                             http://www.colltech.com
                                             




<Prev in Thread] Current Thread [Next in Thread>
  • bug report for nmh-0.27, Yoseff Francus <=