diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-07-16 09:27:13 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-07-16 09:27:13 -0400 |
commit | 9539c53065170e97836503074e770d7b5fbf9f83 (patch) | |
tree | 1ae7ee552fa679c34e84703963cf42632ef1977d /systemv | |
parent | 3c27d2a6ddf50a4cb02c0b7a464eaf7b6f1ea601 (diff) | |
download | cups-9539c53065170e97836503074e770d7b5fbf9f83.tar.gz |
Fix lpadmin with cupsIPPSupplies and cupsSNMPSupplies (Issue #5610)
Diffstat (limited to 'systemv')
-rw-r--r-- | systemv/lpadmin.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/systemv/lpadmin.c b/systemv/lpadmin.c index f428368d4..ca6d386b2 100644 --- a/systemv/lpadmin.c +++ b/systemv/lpadmin.c @@ -1467,6 +1467,7 @@ set_printer_options( (boolval = cupsGetOption("cupsIPPSupplies", num_options, options)) != NULL) { + ppdchanged = 1; wrote_ipp_supplies = 1; cupsFilePrintf(out, "*cupsIPPSupplies: %s\n", (!_cups_strcasecmp(boolval, "true") || @@ -1477,6 +1478,7 @@ set_printer_options( (boolval = cupsGetOption("cupsSNMPSupplies", num_options, options)) != NULL) { + ppdchanged = 1; wrote_snmp_supplies = 1; cupsFilePrintf(out, "*cupsSNMPSupplies: %s\n", (!_cups_strcasecmp(boolval, "true") || @@ -1537,6 +1539,8 @@ set_printer_options( (boolval = cupsGetOption("cupsIPPSupplies", num_options, options)) != NULL) { + ppdchanged = 1; + cupsFilePrintf(out, "*cupsIPPSupplies: %s\n", (!_cups_strcasecmp(boolval, "true") || !_cups_strcasecmp(boolval, "yes") || @@ -1547,6 +1551,8 @@ set_printer_options( (boolval = cupsGetOption("cupsSNMPSupplies", num_options, options)) != NULL) { + ppdchanged = 1; + cupsFilePrintf(out, "*cupsSNMPSupplies: %s\n", (!_cups_strcasecmp(boolval, "true") || !_cups_strcasecmp(boolval, "yes") || @@ -1561,8 +1567,7 @@ set_printer_options( * Do the request... */ - ippDelete(cupsDoFileRequest(http, request, "/admin/", - ppdchanged ? tempfile : file)); + ippDelete(cupsDoFileRequest(http, request, "/admin/", ppdchanged ? tempfile : file)); /* * Clean up temp files... (TODO: catch signals in case we CTRL-C during |