diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-12-21 05:41:11 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-12-21 05:41:11 +0800 |
commit | aa7eaa49e2ef7c40d9d489df0fdd65ac0b64a818 (patch) | |
tree | b817552e09c0d15db62078a4193ab34c54eb6036 | |
parent | c426367f8fba63880c7149178287b655edfb4561 (diff) | |
download | marcuscom-ports-aa7eaa49e2ef7c40d9d489df0fdd65ac0b64a818.tar marcuscom-ports-aa7eaa49e2ef7c40d9d489df0fdd65ac0b64a818.tar.gz marcuscom-ports-aa7eaa49e2ef7c40d9d489df0fdd65ac0b64a818.tar.bz2 marcuscom-ports-aa7eaa49e2ef7c40d9d489df0fdd65ac0b64a818.tar.lz marcuscom-ports-aa7eaa49e2ef7c40d9d489df0fdd65ac0b64a818.tar.xz marcuscom-ports-aa7eaa49e2ef7c40d9d489df0fdd65ac0b64a818.tar.zst marcuscom-ports-aa7eaa49e2ef7c40d9d489df0fdd65ac0b64a818.zip |
Fix local user detection when using startx.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8097 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | sysutils/gnome-volume-manager/Makefile | 4 | ||||
-rw-r--r-- | sysutils/gnome-volume-manager/files/patch-src_manager.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sysutils/gnome-volume-manager/Makefile b/sysutils/gnome-volume-manager/Makefile index 0a53878c2..639a844a3 100644 --- a/sysutils/gnome-volume-manager/Makefile +++ b/sysutils/gnome-volume-manager/Makefile @@ -3,12 +3,12 @@ # Whom: Jean-Yves Lefort <jylefort@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/sysutils/gnome-volume-manager/Makefile,v 1.9 2006/11/08 05:25:16 marcus Exp $ +# $MCom: ports/sysutils/gnome-volume-manager/Makefile,v 1.10 2006/11/16 14:42:10 ahze Exp $ # PORTNAME= gnome-volume-manager PORTVERSION= 2.17.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:R} diff --git a/sysutils/gnome-volume-manager/files/patch-src_manager.c b/sysutils/gnome-volume-manager/files/patch-src_manager.c index a9a37cca2..55fd792ec 100644 --- a/sysutils/gnome-volume-manager/files/patch-src_manager.c +++ b/sysutils/gnome-volume-manager/files/patch-src_manager.c @@ -1,5 +1,5 @@ --- src/manager.c.orig Tue Nov 7 13:01:17 2006 -+++ src/manager.c Tue Nov 7 21:18:25 2006 ++++ src/manager.c Wed Dec 20 16:40:25 2006 @@ -23,9 +23,12 @@ #include <sys/types.h> #include <sys/stat.h> @@ -55,7 +55,7 @@ + for (utmp = &buf[bytes / sizeof(buf[0]) - 1]; !local && utmp >= buf; --utmp) { + if (!utmp->ut_name[0] || strncmp (utmp->ut_name, user, n) != 0) + continue; -+ local = utmp->ut_line[0] == ':' && utmp->ut_line[1] >= '0' && utmp->ut_line[1] <= '9' || !strncmp (utmp->ut_line, "tty", 3) ? LOCAL_USER_FOUND : 0; ++ local = utmp->ut_line[0] == ':' && utmp->ut_line[1] >= '0' && utmp->ut_line[1] <= '9' || !strncmp (utmp->ut_line, "ttyv", 4) ? LOCAL_USER_FOUND : 0; + } + } + |