1
0
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:
Kirill Ponomarev 2004-07-04 11:11:53 +00:00
parent a5184c180d
commit b377717646
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=112901
2 changed files with 22 additions and 1 deletions

View File

@ -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

View File

@ -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));