/*
- * $Id: file.c,v 1.92 2003-04-26 16:53:44 didg Exp $
+ * $Id: file.c,v 1.93 2003-06-02 06:54:22 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include "file.h"
#include "filedir.h"
#include "globals.h"
+#include "unix.h"
/* the format for the finderinfo fields (from IM: Toolbox Essentials):
* field bytes subfield bytes
/*
- * $Id: mangle.h,v 1.4 2003-03-09 19:55:35 didg Exp $
+ * $Id: mangle.h,v 1.5 2003-06-02 06:54:23 didg Exp $
*
*/
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <stdio.h>
#include <atalk/adouble.h>
#ifdef CNID_DB
/*
- * $Id: messages.c,v 1.16 2002-03-24 01:23:41 sibaz Exp $
+ * $Id: messages.c,v 1.17 2003-06-02 06:54:23 didg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* All Rights Reserved. See COPYRIGHT.
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <atalk/afp.h>
i=0;
/* Construct file name SERVERTEXT/message.[pid] */
- filename=malloc(sizeof(SERVERTEXT)+15);
+ if ( NULL == (filename=(char*) malloc(sizeof(SERVERTEXT)+15)) ) {
+ LOG(log_error, logtype_afpd, "readmessage: malloc: %s", strerror(errno) );
+ return;
+ }
+
sprintf(filename, "%s/message.%d", SERVERTEXT, getpid());
#ifdef DEBUG