|
Lines 1202-1207
Link Here
|
| 1202 |
classification[1024], /* CLASSIFICATION environment variable */ |
1202 |
classification[1024], /* CLASSIFICATION environment variable */ |
| 1203 |
content_type[1024], /* CONTENT_TYPE environment variable */ |
1203 |
content_type[1024], /* CONTENT_TYPE environment variable */ |
| 1204 |
device_uri[1024], /* DEVICE_URI environment variable */ |
1204 |
device_uri[1024], /* DEVICE_URI environment variable */ |
|
|
1205 |
device_uri2[1024], /* Sanitized device uri */ |
| 1205 |
ppd[1024], /* PPD environment variable */ |
1206 |
ppd[1024], /* PPD environment variable */ |
| 1206 |
class_name[255], /* CLASS environment variable */ |
1207 |
class_name[255], /* CLASS environment variable */ |
| 1207 |
printer_name[255], /* PRINTER environment variable */ |
1208 |
printer_name[255], /* PRINTER environment variable */ |
|
Lines 1689-1694
Link Here
|
| 1689 |
attr->values[0].string.text); |
1690 |
attr->values[0].string.text); |
| 1690 |
} |
1691 |
} |
| 1691 |
|
1692 |
|
|
|
1693 |
/* |
| 1694 |
* Create a sanitized version of the device uri for logging purposes |
| 1695 |
*/ |
| 1696 |
|
| 1697 |
SanitizeURI(device_uri2, sizeof(device_uri2), printer->device_uri); |
| 1698 |
|
| 1692 |
snprintf(path, sizeof(path), "PATH=%s/filter:/bin:/usr/bin", ServerBin); |
1699 |
snprintf(path, sizeof(path), "PATH=%s/filter:/bin:/usr/bin", ServerBin); |
| 1693 |
snprintf(content_type, sizeof(content_type), "CONTENT_TYPE=%s/%s", |
1700 |
snprintf(content_type, sizeof(content_type), "CONTENT_TYPE=%s/%s", |
| 1694 |
current->filetypes[current->current_file]->super, |
1701 |
current->filetypes[current->current_file]->super, |
|
Lines 1802-1807
Link Here
|
| 1802 |
envp[envc] = NULL; |
1809 |
envp[envc] = NULL; |
| 1803 |
|
1810 |
|
| 1804 |
for (i = 0; i < envc; i ++) |
1811 |
for (i = 0; i < envc; i ++) |
|
|
1812 |
if (!strncmp(envp[i], "DEVICE_URI=", 11)) |
| 1813 |
LogMessage(L_DEBUG, "StartJob: envp[%d]=\"DEVICE_URI=%s\"", i, device_uri2); |
| 1814 |
else |
| 1805 |
LogMessage(L_DEBUG, "StartJob: envp[%d]=\"%s\"", i, envp[i]); |
1815 |
LogMessage(L_DEBUG, "StartJob: envp[%d]=\"%s\"", i, envp[i]); |
| 1806 |
|
1816 |
|
| 1807 |
current->current_file ++; |
1817 |
current->current_file ++; |
|
Lines 1908-1917
Link Here
|
| 1908 |
if (filterfds[slot][1] < 0) |
1918 |
if (filterfds[slot][1] < 0) |
| 1909 |
{ |
1919 |
{ |
| 1910 |
LogMessage(L_ERROR, "Unable to open output file \"%s\" - %s.", |
1920 |
LogMessage(L_ERROR, "Unable to open output file \"%s\" - %s.", |
| 1911 |
printer->device_uri, strerror(errno)); |
1921 |
device_uri2, strerror(errno)); |
| 1912 |
snprintf(printer->state_message, sizeof(printer->state_message), |
1922 |
snprintf(printer->state_message, sizeof(printer->state_message), |
| 1913 |
"Unable to open output file \"%s\" - %s.", |
1923 |
"Unable to open output file \"%s\" - %s.", |
| 1914 |
printer->device_uri, strerror(errno)); |
1924 |
device_uri2, strerror(errno)); |
| 1915 |
|
1925 |
|
| 1916 |
AddPrinterHistory(printer); |
1926 |
AddPrinterHistory(printer); |
| 1917 |
|
1927 |
|