Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 88157 Details for
Bug 135229
Patch to make eject respect device permissions
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
eject-2.1.0-rdwr.patch
eject-2.1.0-rdwr.patch (text/plain), 491 bytes, created by
David A. Corby
on 2006-06-01 22:00:58 UTC
(
hide
)
Description:
eject-2.1.0-rdwr.patch
Filename:
MIME Type:
Creator:
David A. Corby
Created:
2006-06-01 22:00:58 UTC
Size:
491 bytes
patch
obsolete
>--- eject.c.orig 2006-06-02 00:41:29.000000000 -0400 >+++ eject.c 2006-06-02 00:45:56.000000000 -0400 >@@ -656,7 +656,14 @@ > /* Open a device file. */ > static int OpenDevice(const char *fullName) > { >- int fd = open(fullName, O_RDONLY|O_NONBLOCK); >+ int flags = O_NONBLOCK; >+ int fd; >+ if (s_option) { >+ flags |= O_RDWR; >+ } else { >+ flags |= O_RDONLY; >+ } >+ fd = open(fullName, flags); > if (fd == -1) { > fprintf(stderr, _("%s: unable to open `%s'\n"), programName, fullName); > exit(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 135229
: 88157 |
88158