FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 07-28-2010, 06:33 PM
"Brian C. Lane"
 
Default Redirect uncpio errors to syslog (#618181)

Resolves: rhbz#618181
Related: rhbz#588671
---
pyanaconda/isys/uncpio.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/isys/uncpio.c b/pyanaconda/isys/uncpio.c
index 171eb6b..2e686a3 100644
--- a/pyanaconda/isys/uncpio.c
+++ b/pyanaconda/isys/uncpio.c
@@ -39,6 +39,7 @@

#include "cpio.h"
#include "stubs.h"
+#include "log.h"

#if MAJOR_IN_SYSMACROS
#include <sys/sysmacros.h>
@@ -504,7 +505,7 @@ int myCpioInstallArchive(gzFile stream, struct cpioFileMapping * mappings,

do {
if ((rc = getNextHeader(&fd, &ch, NULL))) {
- fprintf(stderr, _("error %d reading header: %s
"), rc,
+ logMessage( WARNING, _("error %d reading header: %s
"), rc,
myCpioStrerror(rc));
return CPIOERR_BAD_HEADER;
}
@@ -755,7 +756,7 @@ int myCpioFilterArchive(gzFile inStream, gzFile outStream, char ** patterns) {

do {
if ((rc = getNextHeader(&inFd, &ch, &pHeader))) {
- fprintf(stderr, _("error %d reading header: %s
"), rc,
+ logMessage( WARNING, _("error %d reading header: %s
"), rc,
myCpioStrerror(rc));
return CPIOERR_BAD_HEADER;
}
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 07-28-2010, 08:20 PM
Chris Lumens
 
Default Redirect uncpio errors to syslog (#618181)

> Resolves: rhbz#618181
> Related: rhbz#588671
> ---
> pyanaconda/isys/uncpio.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)

All look fine to me.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:47 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org