mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Fix "source" command when reading in from a program's stdout
(i.e. the source command's filename ends with a pipe-symbol "|") PR: ports/68650 Submitted by: maintainer Obtained from: mutt's CVS
This commit is contained in:
parent
a5184c180d
commit
b377717646
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=112901
@ -84,7 +84,7 @@
|
||||
|
||||
PORTNAME= mutt-devel
|
||||
PORTVERSION= 1.5.6
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES+= mail ipv6
|
||||
.if defined(WITH_MUTT_NNTP)
|
||||
CATEGORIES+= news
|
||||
|
@ -37,3 +37,24 @@
|
||||
|
||||
#ifndef DOMAIN
|
||||
#define DOMAIN buffer
|
||||
--- init.c.orig
|
||||
+++ init.c
|
||||
@@ -1371,17 +1371,6 @@
|
||||
pid_t pid;
|
||||
struct stat s;
|
||||
|
||||
- if (stat (rcfile, &s) < 0)
|
||||
- {
|
||||
- snprintf (err->data, err->dsize, _("%s: stat: %s"), rcfile, strerror (errno));
|
||||
- return (-1);
|
||||
- }
|
||||
- if (!S_ISREG (s.st_mode))
|
||||
- {
|
||||
- snprintf (err->data, err->dsize, _("%s: not a regular file"), rcfile);
|
||||
- return (-1);
|
||||
- }
|
||||
-
|
||||
if ((f = mutt_open_read (rcfile, &pid)) == NULL)
|
||||
{
|
||||
snprintf (err->data, err->dsize, "%s: %s", rcfile, strerror (errno));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user