]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/job.c
BSDI changes, auto Win API detection
[bacula/bacula] / bacula / src / filed / job.c
index 173da924b86579acd0944f83203c4c175a4f59d2..0a8510df01e673c78d8e7525b875257d1c6a15e4 100644 (file)
@@ -157,7 +157,6 @@ void *handle_client_request(void *dirp)
    jcr = new_jcr(sizeof(JCR), filed_free_jcr); /* create JCR */
    jcr->dir_bsock = dir;
    jcr->ff = init_find_files();
-   jcr->use_win_backup_api = 0;
    jcr->start_time = time(NULL);
    jcr->last_fname = get_pool_memory(PM_FNAME);
    jcr->last_fname[0] = 0;
@@ -289,9 +288,7 @@ static int job_cmd(JCR *jcr)
    }
    jcr->sd_auth_key = bstrdup(sd_auth_key);
    free_pool_memory(sd_auth_key);
-   if (jcr->use_win_backup_api) {
-      get_backup_privileges(jcr, 1 /* ignore_errors */);
-   }
+   get_backup_privileges(jcr, 1 /* ignore_errors */);
    Dmsg2(120, "JobId=%d Auth=%s\n", jcr->JobId, jcr->sd_auth_key);
    return bnet_fsend(dir, OKjob);
 }