Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 215225 Details for
Bug 299386
sys-fs/e2fsprogs-1.41.9: e2freefrag processes getopt() oddly on unsigned char hosts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
posted this patch upstream
0001-fix-local-storage-of-getopt.patch (text/plain), 1.63 KB, created by
SpanKY
on 2010-01-05 04:16:54 UTC
(
hide
)
Description:
posted this patch upstream
Filename:
MIME Type:
Creator:
SpanKY
Created:
2010-01-05 04:16:54 UTC
Size:
1.63 KB
patch
obsolete
>From 2a6f96907d33d3fa0c71f2fa659d5a3b80c40c69 Mon Sep 17 00:00:00 2001 >From: Mike Frysinger <vapier@gentoo.org> >Date: Mon, 4 Jan 2010 23:13:01 -0500 >Subject: [PATCH] fix local storage of getopt() > >The getopt() function returns an int, not a char. On systems where the >default char is unsigned (like ppc), we get weird behavior where -1 is >truncated to 0xff but compared to (int)-1. > >URL: http://bugs.gentoo.org/299386 >Signed-off-by: Mike Frysinger <vapier@gentoo.org> >--- > e2fsck/iscan.c | 2 +- > misc/e2freefrag.c | 3 ++- > tests/progs/test_rel.c | 2 +- > 3 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/e2fsck/iscan.c b/e2fsck/iscan.c >index e9fa076..84e2cc1 100644 >--- a/e2fsck/iscan.c >+++ b/e2fsck/iscan.c >@@ -51,7 +51,7 @@ static void usage(void) > static void PRS(int argc, char *argv[]) > { > int flush = 0; >- char c; >+ int c; > #ifdef MTRACE > extern void *mallwatch; > #endif >diff --git a/misc/e2freefrag.c b/misc/e2freefrag.c >index edbe0bb..1692b9b 100644 >--- a/misc/e2freefrag.c >+++ b/misc/e2freefrag.c >@@ -258,7 +258,8 @@ int main(int argc, char *argv[]) > ext2_filsys fs = NULL; > char *device_name; > char *progname; >- char c, *end; >+ char *end; >+ int c; > > add_error_table(&et_ext2_error_table); > progname = argv[0]; >diff --git a/tests/progs/test_rel.c b/tests/progs/test_rel.c >index e6997b6..954a722 100644 >--- a/tests/progs/test_rel.c >+++ b/tests/progs/test_rel.c >@@ -713,7 +713,7 @@ void main(int argc, char **argv) > int retval; > int sci_idx; > const char *usage = "Usage: test_rel [-R request] [-f cmd_file]"; >- char c; >+ int c; > char *request = 0; > int exit_status = 0; > char *cmd_file = 0; >-- >1.6.6 >
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 299386
: 215225