summaryrefslogtreecommitdiff
path: root/lib/os_mon
diff options
context:
space:
mode:
authorDan Gudmundsson <dgud@erlang.org>2013-02-19 16:14:49 +0100
committerDan Gudmundsson <dgud@erlang.org>2013-05-20 13:35:44 +0200
commit46d99ecfdc8b5d1f6d35c415d020eca5cd6130e1 (patch)
tree162987e1b0f52449926672f7533baed1c9612dac /lib/os_mon
parentb3152d85b1f0187d82270a607006494a04c98546 (diff)
downloaderlang-46d99ecfdc8b5d1f6d35c415d020eca5cd6130e1.tar.gz
Quote windows paths with spaces
Diffstat (limited to 'lib/os_mon')
-rw-r--r--lib/os_mon/src/nteventlog.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/os_mon/src/nteventlog.erl b/lib/os_mon/src/nteventlog.erl
index d624048c29..1fdc0f2025 100644
--- a/lib/os_mon/src/nteventlog.erl
+++ b/lib/os_mon/src/nteventlog.erl
@@ -121,9 +121,8 @@ code_change(_OldVsn, State, _Extra) ->
%%----------------------------------------------------------------------
start_portprogram(Identifier) ->
- Command =
- filename:join([code:priv_dir(os_mon),"bin","nteventlog.exe"]) ++
- " " ++ make_list(Identifier),
+ Command = "\"" ++ filename:join([code:priv_dir(os_mon),"bin","nteventlog.exe"]) ++
+ "\" " ++ make_list(Identifier),
open_port({spawn,Command},[{packet,2}]).
make_list(X) when is_atom(X) ->