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 152188 Details for
Bug 231090
LSPP: getattr causes python Segfault
[?]
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 semctl usage
fixes.part001 (text/plain), 1.10 KB, created by
Miloslav Trmač
on 2007-04-11 00:28:19 UTC
(
hide
)
Description:
Fix semctl usage
Filename:
MIME Type:
Creator:
Miloslav Trmač
Created:
2007-04-11 00:28:19 UTC
Size:
1.10 KB
patch
obsolete
>--- test0/_test.c 2007-03-05 20:20:21.000000000 -0500 >+++ test/_test.c 2007-04-10 20:04:31.000000000 -0400 >@@ -17,6 +17,11 @@ > > #define IPC_64 0x100 /* see <linux/ipc.h> can't be included due to conflicts with other includes */ > >+union semun { >+ int val; >+ struct semid_ds *buf; >+ unsigned short *array; >+}; > /* > * Creates a new semaphore and returns its id. > */ >@@ -34,8 +39,10 @@ > { > struct semid_ds buf; > struct op_return ret; >+ union semun arg; > >- ret.exit = semctl(id, 0, IPC_STAT, &buf); >+ arg.buf = &buf; >+ ret.exit = semctl(id, 0, IPC_STAT, arg); > ret.errno_value = (ret.exit == 0)? 0 : errno; > > ret.syscall_no = SYS_ipc; >@@ -56,13 +63,15 @@ > { > struct semid_ds buf; > struct op_return ret; >+ union semun arg; > > buf.sem_perm.uid = geteuid(); > buf.sem_perm.gid = getegid(); > buf.sem_perm.mode = 0666; > > /* the SEMNUM argument is ignored in the call below */ >- ret.exit = semctl(id, 0, IPC_SET, &buf); >+ arg.buf = &buf; >+ ret.exit = semctl(id, 0, IPC_SET, arg); > ret.errno_value = (ret.exit == 0)? 0 : errno; > > ret.syscall_no = SYS_ipc;
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 231090
:
149313
|
149360
|
151784
|
151787
| 152188 |
152189