about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2022-10-31 00:41:23 +0530
committerArun Isaac2022-10-31 00:41:23 +0530
commit5aecbcd3e59119533658b792c6dafa0c6efd9d5b (patch)
treec27c61436606871625fc00df2c9a8f2c0e8dd662
parent1a56fb7c066a6813b3e3e851832327c8e48c4952 (diff)
downloadgn-transform-databases-5aecbcd3e59119533658b792c6dafa0c6efd9d5b.tar.gz
Put isql commands on a single line.
We put isql commands on a single line in the hope that they will not
be echoed thus leaking the password.

* load-rdf.scm (delete-graph): Put isql commands on a single line.
-rwxr-xr-xload-rdf.scm8
1 files changed, 2 insertions, 6 deletions
diff --git a/load-rdf.scm b/load-rdf.scm
index 4cd7841..b432a83 100755
--- a/load-rdf.scm
+++ b/load-rdf.scm
@@ -152,12 +152,8 @@ authenticating as the dba user with PASSWORD."
   (call-with-pipe
    (lambda (out)
      (format out
-             "SET DSN=localhost:~a;
-SET PWD=~a;
-DELETE FROM rdf_quad WHERE g = iri_to_id ('~a');"
-             port
-             password
-             graph))
+             "SET DSN=localhost:~a; SET PWD=~a; DELETE FROM rdf_quad WHERE g = iri_to_id ('~a');"
+             port password graph))
    OPEN_WRITE
    "isql"))