Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 376250 Details for
Bug 509394
x11-misc/xdiskusage_1.48_p20111016 - re-add reading from pipe plus segfault fix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Alternative patch making "xdiskusage -" work
xdiskusage_1.48_p20111016_fix_hyphen.patch (text/plain), 756 bytes, created by
Bernd Feige
on 2014-05-02 16:19:42 UTC
(
hide
)
Description:
Alternative patch making "xdiskusage -" work
Filename:
MIME Type:
Creator:
Bernd Feige
Created:
2014-05-02 16:19:42 UTC
Size:
756 bytes
patch
obsolete
>=== modified file 'xdiskusage.C' >--- xdiskusage.C 2014-05-02 16:10:02 +0000 >+++ xdiskusage.C 2014-05-02 16:11:11 +0000 >@@ -221,7 +221,7 @@ > int arg_cb(int, char **argv, int &i) { > const char *s = argv[i]; > if (!s) return 0; >- if (*s != '-') return 0; >+ if (*s != '-' || s[1]=='\0') return 0; > for (s++; *s; s++) { > if (*s == 'a') all_files = 1; > else if (*s == 'q') quiet = 1; >@@ -257,12 +257,12 @@ > return 1; > } else { > // plain "-" indicates pipe >- argv[n] = 0; > } > } > while (n < argc) { >- OutputWindow* d = OutputWindow::make(argv[n++]); >+ OutputWindow* d = OutputWindow::make(strcmp(argv[n],"-")==0 ? NULL : argv[n]); > if (d) d->show(argc,argv); >+ n++; > } > } else { > // normal gui: >
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 509394
:
376210
|
376212
| 376250