Minor POSIX patch to samba head and 3.0

Paul Green paulg at sw.stratus.com
Mon Feb 3 19:09:35 GMT 2003


Samba is pretty good about sticking with POSIX functions. I tripped over a small 
case where it references a non-POSIX function. So I fixed it. See attachment.

This patch should work on both head and 3_0. The 2_2 branch is unaffected.

I verified it compiles okay. Otherwise, this change is simple enough that it can 
be verified by inspection. Honest.

Thanks
PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies.
Voice: +1 978-461-7557; FAX: +1 978-461-3610
Speaking from Stratus not for Stratus

-------------- next part --------------

From: Paul_GreenVOS at vos.stratus.com
Date: Sun, 2 Feb 03 11:15 est
To: paul.green at stratus.com, paulg at sw.stratus.com
Subject: profiles.c patch
Mime-Version: 1.0

diff -ur old/samba.save/source/utils/profiles.c new/samba.save/source/utils/profiles.c
--- old/samba.save/source/utils/profiles.c	Mon Jan 13 15:47:42 2003
+++ new/samba.save/source/utils/profiles.c	Mon Jan 13 15:47:49 2003
@@ -408,7 +408,7 @@
 
   if (sa1 != sa2) return 0;
 
-  return !bcmp((char *)&s1->id_auth, (char *)&s2->id_auth,
+  return !memcmp((void *)&s1->id_auth, (void *)&s2->id_auth,
 		6 + sa1 * 4);
 
 }



More information about the samba-technical mailing list