Compile and link errors of 2.0.7 under SCO ODT 3.0

Dr. Walter Willmertinger willmertinger at consys.de
Tue Jun 6 14:18:57 GMT 2000


Error 1:
In lib/replace.c at line 174 there is a syntax error:
    if((grouplst = (gid_t *)malloc(sizeof(gid_t) * max_gr)) == NULL) {
            DEBUG(0,("initgroups: malloc fail !\n");                   <===== missing right parenthesis
            return -1;
    }

just add a second closing parenthesis
            DEBUG(0,("initgroups: malloc fail !\n"));

maybe nobody is using this code?
*********************************************
Error 2:
SCO 3.2 V 4.2 has no fchmod, so I replaced in passdb/smbpass.c the line
    if(fchmod(fileno(fp), S_IRUSR|S_IWUSR) == -1) {
with
   if(chmod(pfile, S_IRUSR|S_IWUSR) == -1) {

I hope it does the same thing?

I think I will try this release in a lonely hour with no people in our network!
--

Mit freundlichen Grüßen,

Dr. Walter Willmertinger

CONSYS Gesellschaft für Softwaretechnologie und Systementwicklung mbH
Dr. Walter Willmertinger
Landsberger Strasse 402   EMail: willmertinger at consys.de
81241 Muenchen            Phone: +49 89 580 81 81
Germany                     Fax: +49 89 588 77 6
WWW-Homepage: http://www.consys.de




More information about the samba mailing list