openbsd-ports/net/samba/patches/patch-ab
marc 335af9a05e Upgrade to samba-1.9.18p3 (old version no longer avail)
Install sample config file in /etc if no config file exists
Install doc in /usr/local/share/doc/samba
Install faq in /usr/local/share/doc/html/samba
Clean up packing list -- remove all but config files in /etc
Get rid of one instance of mktemp and some compile warnings
1998-03-14 22:05:22 +00:00

21 lines
558 B
Plaintext

--- message.c.~1~ Mon Jan 26 12:05:40 1998
+++ message.c Fri Mar 13 20:56:23 1998
@@ -53,14 +53,13 @@
}
/* put it in a temporary file */
- sprintf(s,"%s/msg.XXXXXX",tmpdir());
- fstrcpy(name,(char *)mktemp(s));
-
- fd = open(name,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,0600);
+ snprintf(s, sizeof(s),"%s/msg.XXXXXX",tmpdir());
+ fd = mkstemp( s );
if (fd == -1) {
DEBUG(1,("can't open message file %s\n",name));
return;
}
+ fstrcpy(name,s);
for (i=0;i<msgpos;) {
if (msgbuf[i]=='\r' && i<(msgpos-1) && msgbuf[i+1]=='\n') {