* pipe.cc (fhandler_pipe::open): Remove O_CREAT limitation.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2005-04-08 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* pipe.cc (fhandler_pipe::open): Remove O_CREAT limitation.
|
||||||
|
|
||||||
2005-04-07 Corinna Vinschen <corinna@vinschen.de>
|
2005-04-07 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* syslog.cc (try_connect_guard): Remove useless conditionalized code.
|
* syslog.cc (try_connect_guard): Remove useless conditionalized code.
|
||||||
@ -237,7 +241,7 @@
|
|||||||
cygheap->user.deimpersonate instead of RevertToSelf. Create
|
cygheap->user.deimpersonate instead of RevertToSelf. Create
|
||||||
impersonation token from primary internal or external token. Set
|
impersonation token from primary internal or external token. Set
|
||||||
cygheap->user.curr_primary_token and cygheap->user.current_token
|
cygheap->user.curr_primary_token and cygheap->user.current_token
|
||||||
privileges once here. Drop "failed" and "failed_ptok" labels.
|
privileges once here. Drop "failed" and "failed_ptok" labels.
|
||||||
Drop setting DefaultDacl of process token.
|
Drop setting DefaultDacl of process token.
|
||||||
(setegid32): Use hProcToken and hProcImpToken instead of opening
|
(setegid32): Use hProcToken and hProcImpToken instead of opening
|
||||||
process token. Always reimpersonate afterwards.
|
process token. Always reimpersonate afterwards.
|
||||||
|
@ -46,11 +46,6 @@ fhandler_pipe::open (int flags, mode_t mode)
|
|||||||
size_t size;
|
size_t size;
|
||||||
int pid, rwflags = (flags & O_ACCMODE);
|
int pid, rwflags = (flags & O_ACCMODE);
|
||||||
|
|
||||||
if (flags & O_CREAT)
|
|
||||||
{
|
|
||||||
set_errno (EACCES);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
sscanf (get_name (), "/proc/%d/fd/pipe:[%d]", &pid, (int *) &pipe_hdl);
|
sscanf (get_name (), "/proc/%d/fd/pipe:[%d]", &pid, (int *) &pipe_hdl);
|
||||||
if (pid == myself->pid)
|
if (pid == myself->pid)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user