openbsd-ports/mail/re-alpine/patches/patch-imap_src_mlock_mlock_c
ajacoutot 89b20c4179 Import alpine-2.02.
This is the continuation of the Alpine email client from University of
Washington.
This port will be used to build the following packages:
- alpine
- c-client
- imap-uw
- mailutil-uw
- pico
- pilot

ok jasper@
2012-09-27 15:09:53 +00:00

18 lines
770 B
Plaintext

$OpenBSD: patch-imap_src_mlock_mlock_c,v 1.1.1.1 2012/09/27 15:09:53 ajacoutot Exp $
--- imap/src/mlock/mlock.c.orig Sat Oct 2 10:37:57 2010
+++ imap/src/mlock/mlock.c Sun Sep 23 11:28:30 2012
@@ -69,11 +69,11 @@ int main (int argc,char *argv[])
char *s,*dir,*file,*lock,*hitch,tmp[1024];
size_t dlen,len;
struct stat sb,fsb;
- struct group *grp = getgrnam ("mail");
+ struct group *grp = getgrnam ("smmsp");
/* get syslog */
openlog (argv[0],LOG_PID,LOG_MAIL);
if (!grp || (grp->gr_gid != getegid ()))
- return die ("not setgid mail",EX_USAGE);
+ return die ("not setgid smmsp",EX_USAGE);
if (argc != 3) return die ("invalid arguments",EX_USAGE);
for (s = argv[1]; *s; s++)
if (!isdigit (*s)) return die ("invalid fd",EX_USAGE);