We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: 2.1-current CUPS.org User: twaugh.redhat
In some instances, rename() is called without checking its return value. Here are the fixes for some of those.
The text was updated successfully, but these errors were encountered:
CUPS.org User: mike
Fixed in Subversion repository.
Sorry, something went wrong.
"0001-Check-return-value-when-calling-rename.patch":
From 47a8d10f130312ef3e3dc4af2870f42ef53ca5e7 Mon Sep 17 00:00:00 2001 From: Tim Waugh twaugh@redhat.com Date: Tue, 24 Feb 2015 10:24:50 +0000 Subject: [PATCH] Check return value when calling rename().
scheduler/ipp.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/scheduler/ipp.c b/scheduler/ipp.c index d775fb7..0c84a6c 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -8257,7 +8257,17 @@ print_job(cupsd_client_t con, / I - Client connection */
snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, job->id, job->num_files);
"Unable to rename job document file: %s",
strerror(errno));
_("Unable to rename job document file."));
cupsdClearString(&con->filename);
/* @@ -9485,7 +9495,16 @@ send_document(cupsd_client_t con, / I - Client connection */
2.1.0
No branches or pull requests
Version: 2.1-current
CUPS.org User: twaugh.redhat
In some instances, rename() is called without checking its return value. Here are the fixes for some of those.
The text was updated successfully, but these errors were encountered: