The Samba-Bugzilla – Attachment 9064 Details for
Bug 10036
Lack of Sanity Checking in calls to ftell()/fcntl()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds Sanity Check for fcntl() call
fcntl_lock_thread.c.patch (text/plain), 425 bytes, created by
Bill Parker
on 2013-07-18 17:23:16 UTC
(
hide
)
Description:
Adds Sanity Check for fcntl() call
Filename:
MIME Type:
Creator:
Bill Parker
Created:
2013-07-18 17:23:16 UTC
Size:
425 bytes
patch
obsolete
>--- fcntl_lock_thread.c.orig 2013-07-17 20:04:39.181918422 -0700 >+++ fcntl_lock_thread.c 2013-07-17 20:07:17.767919133 -0700 >@@ -97,7 +97,10 @@ > lock.l_pid = getpid(); > > /* set a 4 byte write lock */ >- fcntl(fd,F_SETLK,&lock); >+ ret = fcntl(fd,F_SETLK,&lock); >+ if (ret == -1) { >+ fprintf(stderr,"ERROR: lock test failed (ret=%d errno=%d)\n", ret, (int)errno); >+ } > > sleep(4); /* allow thread to try getting lock */ >
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 Raw
Flags:
wp02855
:
review?
Actions:
View
Attachments on
bug 10036
:
9060
|
9061
|
9062
|
9063
| 9064