]> git.sur5r.net Git - bacula/bacula/commitdiff
Add Bacula version+date to Client record. This is a very minor
authorKern Sibbald <kern@sibbald.com>
Sun, 26 Nov 2006 16:01:26 +0000 (16:01 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 26 Nov 2006 16:01:26 +0000 (16:01 +0000)
     security problem in that passing the version facilitates a hacker's
     life, but it will make support easier.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3706 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/src/filed/job.c
bacula/technotes-1.39

index 0da65c17df58c13ab8e59dc9d210fcba7914b531..4571380e34f593dc52a9bc25117b49aae3f495f8 100644 (file)
@@ -41,6 +41,8 @@ Document:
  
 
 Priority:
+- Ensure that the SD re-reads the Media record if the JobFiles
+  does not match -- it may have been updated by another job.
 - Look at moving the Storage directive from the Job to the
   Pool in the default conf files.
 - Make sure the new level=Full syntax is used in all 
index 00d2da45e3057fe30178036913a8d0ed12551e53..e7d52346557eb517a582f70a703f55f3800e934f 100644 (file)
@@ -134,7 +134,7 @@ static char OKverify[]    = "2000 OK verify\n";
 static char OKrestore[]   = "2000 OK restore\n";
 static char OKsession[]   = "2000 OK session\n";
 static char OKstore[]     = "2000 OK storage\n";
-static char OKjob[]       = "2000 OK Job %s,%s,%s";
+static char OKjob[]       = "2000 OK Job %s (%s) %s,%s,%s";
 static char OKsetdebug[]  = "2000 OK setdebug=%d\n";
 static char BADjob[]      = "2901 Bad Job\n";
 static char EndJob[]      = "2800 End Job TermCode=%d JobFiles=%u ReadBytes=%s JobBytes=%s Errors=%u\n";
@@ -432,7 +432,7 @@ static int job_cmd(JCR *jcr)
    jcr->sd_auth_key = bstrdup(sd_auth_key);
    free_pool_memory(sd_auth_key);
    Dmsg2(120, "JobId=%d Auth=%s\n", jcr->JobId, jcr->sd_auth_key);
-   return bnet_fsend(dir, OKjob, HOST_OS, DISTNAME, DISTVER);
+   return bnet_fsend(dir, OKjob, VERSION, LSMDATE, HOST_OS, DISTNAME, DISTVER);
 }
 
 static int runbefore_cmd(JCR *jcr)
index d83dd3950deaac3b44e8558a51f64790542d06fd..0a98bda7a7376c80611c95b9b7d78f7b54b126ad 100644 (file)
@@ -2,6 +2,9 @@
 
 General:
 26Nov06
+kes  Add Bacula version+date to Client record. This is a very minor
+     security problem in that passing the version facilitates a hacker's
+     life, but it will make support easier.
 kes  Implement fixes to make disk seeking work.  Currently turned
      off in version.h pending reserch on what problems it will cause
      because of the previous bsnprinf() sign extension bug.