Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 685949 Details for
Bug 901895
You cannot specify an output file when processing multiple input files.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix not to open - ported from 4.13.4pre2
sharutils-4.13.3-Do-not-open-and-dev-stdout.patch (text/plain), 2.15 KB, created by
Petr Pisar
on 2013-01-23 14:27:04 UTC
(
hide
)
Description:
Fix not to open - ported from 4.13.4pre2
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2013-01-23 14:27:04 UTC
Size:
2.15 KB
patch
obsolete
>From 49857a3ee79226ce870607104f7ef28bacae3f57 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> >Date: Wed, 23 Jan 2013 14:06:50 +0100 >Subject: [PATCH] Do not open - and /dev/stdout > >Ported from 4.13.4pre2. ><https://bugzilla.redhat.com/show_bug.cgi?id=901895> > >I have duplicated the autogen code to C because the build system does >not run autogen. >--- > src/uudecode-opts.c | 17 ++++++++++++++++- > src/uudecode-opts.def | 17 ++++++++++++++++- > 2 files changed, 32 insertions(+), 2 deletions(-) > >diff --git a/src/uudecode-opts.c b/src/uudecode-opts.c >index 19f4ee1..33ebe2f 100644 >--- a/src/uudecode-opts.c >+++ b/src/uudecode-opts.c >@@ -385,7 +385,22 @@ doOptOutput_File(tOptions* pOptions, tOptDesc* pOptDesc) > * reset its state. > */ > /* extracted from uudecode-opts.def, line 60 */ >- FILE * fp = freopen (pOptDesc->optArg.argString, "w", stdout); >+ FILE * fp; >+ switch (*pOptDesc->optArg.argString) >+ { >+ case '-': >+ if (pOptDesc->optArg.argString[1] == '\0') >+ return; >+ break; >+ >+ case '/': >+ if (strcmp (pOptDesc->optArg.argString + 1, "dev/stdout") == 0) >+ return; >+ >+ default: >+ break; >+ } >+ fp = freopen (pOptDesc->optArg.argString, "w", stdout); > if (fp != stdout) > { > error (0, errno, "%s", pOptDesc->optArg.argString); >diff --git a/src/uudecode-opts.def b/src/uudecode-opts.def >index ae11b0a..419387b 100644 >--- a/src/uudecode-opts.def >+++ b/src/uudecode-opts.def >@@ -57,7 +57,22 @@ flag = { > arg-name = file; > descrip = 'direct output to @file{file}'; > flag-code = <<- _EOCode_ >- FILE * fp = freopen (pOptDesc->optArg.argString, "w", stdout); >+ FILE * fp; >+ switch (*pOptDesc->optArg.argString) >+ { >+ case '-': >+ if (pOptDesc->optArg.argString[1] == '\0') >+ return; >+ break; >+ >+ case '/': >+ if (strcmp (pOptDesc->optArg.argString + 1, "dev/stdout") == 0) >+ return; >+ >+ default: >+ break; >+ } >+ fp = freopen (pOptDesc->optArg.argString, "w", stdout); > if (fp != stdout) > { > error (0, errno, "%s", pOptDesc->optArg.argString); >-- >1.8.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 901895
:
685851
| 685949