We don't want getpid() here.

This commit is contained in:
ajacoutot 2010-06-29 04:27:11 +00:00
parent 2d01eaedb9
commit 1f9980cc7b
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.6 2009/12/31 14:07:19 kili Exp $
# $OpenBSD: Makefile,v 1.7 2010/06/29 04:27:11 ajacoutot Exp $
COMMENT-main= file and directory monitoring system
COMMENT-server= gamin file monitoring server
@ -7,8 +7,8 @@ COMMENT-python= gamin Python bindings
GNOME_PROJECT= gamin
GNOME_VERSION= 0.1.10
PKGNAME-main= libgamin-${GNOME_VERSION}
PKGNAME-server= ${DISTNAME}p3
PKGNAME-main= libgamin-${GNOME_VERSION}p0
PKGNAME-server= ${DISTNAME}p4
PKGNAME-python= py-gamin-${GNOME_VERSION}
SHARED_LIBS += gamin-1 0.0 # .1.10

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-libgamin_gam_api_c,v 1.1.1.1 2009/12/04 08:07:20 ajacoutot Exp $
$OpenBSD: patch-libgamin_gam_api_c,v 1.2 2010/06/29 04:27:11 ajacoutot Exp $
Adapt socket credentials code to OpenBSD.
@ -23,7 +23,7 @@ Adapt socket credentials code to OpenBSD.
+ gid_t egid;
+ if (getpeereid (fd, &euid, &egid) == 0)
+ {
+ c_pid = getpid();
+ c_pid = -1;
+ c_uid = euid;
+ c_gid = egid;
+ }

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-server_gam_channel_c,v 1.1.1.1 2009/12/04 08:07:20 ajacoutot Exp $
$OpenBSD: patch-server_gam_channel_c,v 1.2 2010/06/29 04:27:11 ajacoutot Exp $
Adapt socket credentials code to OpenBSD.
@ -29,7 +29,7 @@ prevent gam_server from starting.
+ gid_t egid;
+ if (getpeereid (fd, &euid, &egid) == 0)
+ {
+ c_pid = getpid();
+ c_pid = -1;
+ c_uid = euid;
+ c_gid = egid;
+ }