freebsd-ports/japanese/samba/files/patch-ac
Steve Price 2430255b30 Adding ja-sambe version 2.0.5a-2.
A free SMB and CIFS client and server for UNIX.

PR:		15953
Submitted by:	Shinya Sasaki <pcmaster@osk3.3web.ne.jp>
2000-01-29 05:21:39 +00:00

37 lines
883 B
Plaintext

*** lib/pidfile.c.orig Wed Jul 21 10:25:08 1999
--- lib/pidfile.c Mon Dec 27 04:46:26 1999
***************
*** 37,43 ****
unsigned ret;
pstring pidFile;
! slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_lockdir(), name);
fd = sys_open(pidFile, O_NONBLOCK | O_RDWR, 0644);
if (fd == -1) {
--- 37,43 ----
unsigned ret;
pstring pidFile;
! slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), name);
fd = sys_open(pidFile, O_NONBLOCK | O_RDWR, 0644);
if (fd == -1) {
***************
*** 78,84 ****
pstring pidFile;
pid_t pid;
! slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_lockdir(), name);
pid = pidfile_pid(name);
if (pid != 0) {
--- 78,84 ----
pstring pidFile;
pid_t pid;
! slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), name);
pid = pidfile_pid(name);
if (pid != 0) {