bzero'd before use.
From: "Chris G. Demetriou" <cgd@nobozo.CS.Berkeley.EDU>
SCCS-vsn: usr.sbin/lpr/common_source/startdaemon.c 8.2
- * Copyright (c) 1983, 1993
+ * Copyright (c) 1983, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
-static char sccsid[] = "@(#)startdaemon.c 8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)startdaemon.c 8.2 (Berkeley) %G%";
perr("socket");
return(0);
}
perr("socket");
return(0);
}
+ memset(&un, 0, sizeof(un));
un.sun_family = AF_UNIX;
strcpy(un.sun_path, _PATH_SOCKETNAME);
#ifndef SUN_LEN
un.sun_family = AF_UNIX;
strcpy(un.sun_path, _PATH_SOCKETNAME);
#ifndef SUN_LEN