Projet

Général

Profil

« Précédent | Suivant » 

Révision 8546da5e

Ajouté par Renato Botelho il y a presque 10 ans

Fix pbi_preload crash when LOGNAME env var is not set

Voir les différences:

pfPorts/pcbsd-utils/Makefile
3 3

  
4 4
PORTNAME=	pcbsd-utils
5 5
PORTVERSION=	4069c7b
6
PORTREVISION=	1
6 7
CATEGORIES=	sysutils
7 8
MASTER_SITES=	LOCAL/garga/pcbsd-utils
8 9

  
pfPorts/pcbsd-utils/files/patch-pbi_preload.c
1
--- pbi-manager/pbi_preload/pbi_preload.c.orig	2014-05-09 00:15:57.000000000 -0300
2
+++ pbi-manager/pbi_preload/pbi_preload.c	2014-05-09 00:16:08.000000000 -0300
3
@@ -97,7 +97,7 @@
4
    strcat(hints32, pbiname);
5
 
6
    // Get the process username
7
-   strcpy(username, getenv("LOGNAME"));
8
+   strcpy(username, getlogin());
9
    strcpy(hashdir, "/usr/pbi/.hashdir-");
10
    strcat(hashdir, username);
11
 

Formats disponibles : Unified diff