Skip to content

Truncate file: URI file on open. Fixes #1800 - #1801

Closed
ValdikSS wants to merge 1 commit into
OpenPrinting:masterfrom
ValdikSS:truncate-file-uri
Closed

ValdikSS wants to merge 1 commit into
OpenPrinting:masterfrom
ValdikSS:truncate-file-uri

Conversation

@ValdikSS

@ValdikSS ValdikSS commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

When CUPS is configured to print into a file with file:// URI, the newly printed file does not fully rewrite the existing output data.

Trim the file upon opening it.

Fixes #1800

When CUPS is configured to print into a file with file:// URI, the
newly printed file does not fully rewrite the existing output data.

Trim the file upon opening it.
@michaelrsweet michaelrsweet self-assigned this Oct 28, 2026
@michaelrsweet michaelrsweet added the wontfix This will not be worked on label Oct 28, 2026
@michaelrsweet

Copy link
Copy Markdown
Member

As noted in the parent bug, this behavior is intentional since CUPS 2.4.17 to address multiple security vulnerabilities and won't be brought back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

file:// file is not trimmed before writing

2 participants