ports/114689: [PATCH] net-p2p/mldonkey: explicit use of sh in rc script required
Bjoern Koenig
bkoenig at alpha-tierchen.de
Wed Jul 18 06:50:04 UTC 2007
>Number: 114689
>Category: ports
>Synopsis: [PATCH] net-p2p/mldonkey: explicit use of sh in rc script required
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 18 06:50:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Bjoern Koenig
>Release:
>Organization:
>Environment:
>Description:
In case the mlnet_user doesn't have a sh-like shell, e.g. tcsh, the rc script
will fail with the error message "Ambiguous output redirect.". It is necessary
to use sh explicitely.
>How-To-Repeat:
>Fix:
--- patch-ports_net-p2p_mldonkey_files_mlnet.in.diff begins here ---
--- ports/net-p2p/mldonkey/files/mlnet.in.orig 2006-12-15 02:59:01.000000000 +0100
+++ ports/net-p2p/mldonkey/files/mlnet.in 2007-07-18 08:13:24.000000000 +0200
@@ -59,10 +59,10 @@
${mlnet_flags} \
>> ${mlnet_logfile} 2>&1 &"
else
- su -l ${mlnet_user} -c "${command} \
+ su -l ${mlnet_user} -c "sh -c \"${command} \
${mlnet_logcommand} \
${mlnet_flags} \
- >> ${mlnet_logfile} 2>&1 &"
+ >> ${mlnet_logfile} 2>&1 &\""
fi
}
--- patch-ports_net-p2p_mldonkey_files_mlnet.in.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list