Remove references to cuserid(); it doesn't exist on MacOS and it's
useless everywhere anyway.
This commit is contained in:
parent
6d7560ebb7
commit
e702635631
3 changed files with 19 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.22 2012/10/08 09:57:42 asau Exp $
|
||||
# $NetBSD: Makefile,v 1.23 2014/06/29 05:45:57 dholland Exp $
|
||||
#
|
||||
|
||||
DISTNAME= yrolo-1.1
|
||||
PKGREVISION= 5
|
||||
PKGREVISION= 6
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= http://www.muquit.com/muquit/software/yrolo/
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.8 2007/07/27 23:56:16 joerg Exp $
|
||||
$NetBSD: distinfo,v 1.9 2014/06/29 05:45:57 dholland Exp $
|
||||
|
||||
SHA1 (yrolo-1.1.tar.gz) = 3d2f6f36ad57a41dca940a28a6139a381e5f7a33
|
||||
RMD160 (yrolo-1.1.tar.gz) = ce680e2ee1d02a291d2506fbda438fdfa9fa4ce3
|
||||
Size (yrolo-1.1.tar.gz) = 79332 bytes
|
||||
SHA1 (patch-aa) = db7853c0af6b305e237ee9f373768f865377a910
|
||||
SHA1 (patch-ab) = 11e7bdf23566626da247a1eb11a3351ca6591954
|
||||
SHA1 (patch-exptild.c) = 750ac65d3742366a33d74aab899b9c0bdb0704b9
|
||||
|
|
15
misc/yrolo/patches/patch-exptild.c
Normal file
15
misc/yrolo/patches/patch-exptild.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
$NetBSD: patch-exptild.c,v 1.1 2014/06/29 05:45:57 dholland Exp $
|
||||
|
||||
Avoid cuserid(). It doesn't exist everywhere and it's useless anyway.
|
||||
|
||||
--- exptild.c~ 1995-05-07 19:34:19.000000000 +0000
|
||||
+++ exptild.c
|
||||
@@ -180,8 +180,6 @@ char
|
||||
|
||||
username = (char *) getlogin();
|
||||
if (username == (char *) NULL)
|
||||
- username = cuserid ((char *) NULL);
|
||||
- if (username == (char *) NULL)
|
||||
{
|
||||
setpwent();
|
||||
if ((ptr = getpwuid ((uid_t) getuid()))
|
Loading…
Reference in a new issue