]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_query.c
kes Update copyright date in program files, and for the most part
[bacula/bacula] / bacula / src / dird / ua_query.c
index a4e42c7771ddd282b9ea7410aaf92ff908a25fb5..6e1a3c2b845a6ad51123bb4a422a444525d1ac7a 100644 (file)
@@ -11,7 +11,7 @@
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
-   version 2 as ammended with additional clauses defined in the
+   version 2 as amended with additional clauses defined in the
    file LICENSE in the main source directory.
 
    This program is distributed in the hope that it will be useful,
@@ -55,8 +55,8 @@ int querycmd(UAContext *ua, const char *cmd)
    if (!open_db(ua)) {
       goto bail_out;
    }
-   if ((fd=fopen(query_file, "r")) == NULL) {
-      bsendmsg(ua, "Could not open %s: ERR=%s\n", query_file,
+   if ((fd=fopen(query_file, "rb")) == NULL) {
+      bsendmsg(ua, _("Could not open %s: ERR=%s\n"), query_file,
          strerror(errno));
       goto bail_out;
    }
@@ -252,7 +252,7 @@ int sqlquerycmd(UAContext *ua, const char *cmd)
    bsendmsg(ua, _("Entering SQL query mode.\n"
 "Terminate each query with a semicolon.\n"
 "Terminate query mode with a blank line.\n"));
-   msg = "Enter SQL query: ";
+   msg = _("Enter SQL query: ");
    while (get_cmd(ua, msg)) {
       len = strlen(ua->cmd);
       Dmsg2(400, "len=%d cmd=%s:\n", len, ua->cmd);