diff options
author | pst <pst@FreeBSD.org> | 1998-02-23 23:03:38 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1998-02-23 23:03:38 +0000 |
commit | 2c78afbcfaffafdd29c54e8a0311383cdd7811ea (patch) | |
tree | dee8742b037718a466ee18d3dd7ac74ffec460a4 | |
parent | c027d7f02f38fb275d96b8a64c0e010e93fbfc2f (diff) | |
download | FreeBSD-ports-2c78afbcfaffafdd29c54e8a0311383cdd7811ea.zip FreeBSD-ports-2c78afbcfaffafdd29c54e8a0311383cdd7811ea.tar.gz |
Find utmp in the right spot
-rw-r--r-- | mail/mh/files/patch-ac | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/mail/mh/files/patch-ac b/mail/mh/files/patch-ac index 9a4d62d..09da93c 100644 --- a/mail/mh/files/patch-ac +++ b/mail/mh/files/patch-ac @@ -102,7 +102,24 @@ continue; /* else fall */ case '>': *************** -*** 1312,1330 **** +*** 818,824 **** + if (utmped) + return utmped; + +! if ((uf = fopen ("/etc/utmp", "r")) == NULL) + return NOTOK; + + while (fread ((char *) &ut, sizeof ut, 1, uf) == 1) +--- 859,865 ---- + if (utmped) + return utmped; + +! if ((uf = fopen (_PATH_UTMP, "r")) == NULL) + return NOTOK; + + while (fread ((char *) &ut, sizeof ut, 1, uf) == 1) +*************** +*** 1314,1332 **** fl.l_whence = 0; fl.l_start = 0; fl.l_len = 0; @@ -122,7 +139,7 @@ advise (file, "unable to perform flock on"); goto out; } ---- 1353,1371 ---- +--- 1355,1373 ---- fl.l_whence = 0; fl.l_start = 0; fl.l_len = 0; |