OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5dd963
)
* sec_acl.cc (setacl): Make sure sd_ret is large enough.
author
corinna
<corinna>
Tue, 20 Jan 2004 09:13:19 +0000
(09:13 +0000)
committer
corinna
<corinna>
Tue, 20 Jan 2004 09:13:19 +0000
(09:13 +0000)
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/sec_acl.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
9309d10
..
16c5856
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-1,3
+1,7
@@
+2004-01-20 Christopher Faylor <cgf@redhat.com>
+
+ * sec_acl.cc (setacl): Make sure sd_ret is large enough.
+
2004-01-19 Christopher Faylor <cgf@redhat.com>
* sigproc.cc (sigproc_terminate): Don't close sendsig handle when
diff --git
a/winsup/cygwin/sec_acl.cc
b/winsup/cygwin/sec_acl.cc
index
4d0f408
..
472c203
100644
(file)
--- a/
winsup/cygwin/sec_acl.cc
+++ b/
winsup/cygwin/sec_acl.cc
@@
-212,6
+212,11
@@
setacl (const char *file, int nentries, __aclent32_t *aclbufp)
__seterrno ();
return -1;
}
+ if (!sd_ret.realloc (sd_size))
+ {
+ set_errno (ENOMEM);
+ return -1;
+ }
if (!MakeSelfRelativeSD (&sd, sd_ret, &sd_size))
{
__seterrno ();