Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
asdf
asdf
Commits
9c3cdffb
Commit
9c3cdffb
authored
Sep 30, 2016
by
Francois-Rene Rideau
Committed by
Elias Pipping
Oct 08, 2016
Browse files
Stop asserting on user-provided arguments
Use explicit error checking instead.
parent
9bdf725b
Changes
1
Hide whitespace changes
Inline
Side-by-side
uiop/run-program.lisp
View file @
9c3cdffb
...
...
@@ -914,7 +914,9 @@ race conditions."
(
progn
command
keys
input
output
error-output
ignore-error-status
;; ignore
(
not-implemented-error
'%use-launch-program
))
(
assert
(
not
(
member
:stream
(
list
input
output
error-output
))))
(
when
(
member
:stream
(
list
input
output
error-output
))
(
parameter-error
"~S: ~S is not allowed as synchronous I/O redirection argument"
'run-program
:stream
))
(
let*
((
active-input-p
(
%active-io-specifier-p
input
))
(
active-output-p
(
%active-io-specifier-p
output
))
(
active-error-output-p
(
%active-io-specifier-p
error-output
))
...
...
@@ -988,7 +990,9 @@ race conditions."
(
string
(
parse-native-namestring
spec
))
(
pathname
spec
)
((
eql
:output
)
(
assert
(
equal
operator
" 2>"
))
(
unless
(
equal
operator
" 2>"
)
(
parameter-error
"~S: only the ~S argument can be ~S"
'run-program
:error-output
:output
))
(
return-from
redirect
'
(
" 2>&1"
))))))
(
when
pathname
(
list
operator
" "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment