| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
| |
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
|
|
|
|
| |
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
|
| |
|
|
|
|
| |
* libc/include/wchar.h: Ditto.
|
|
|
|
|
|
|
|
|
|
| |
(tty::is_master_closed): Drop method.
* fhandler_tty.cc (fhandler_pty_slave::open): Remove code prematurely
bailing out if master control thread is not running.
(fhandler_pty_slave::read): Don't generate SIGHUP if master control
thread is not running.
(fhandler_pty_master::close): Rearrange code to avoid stopping master
control thread twice in multi-threaded scenarios.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(class fhandler_pty_master): Add echo_r and echo_w handles constituting
read and write side of new echo pipe.
* select.cc (peek_pipe): On pty masters, check additionally if input
from the echo pipe is available.
* fhandler_tty.cc (fhandler_pty_master::doecho): Drop output_mutex
locking. Write output to echo pipe.
(fhandler_pty_master::process_slave_output): Check if input is available
in echo pipe and prefer to read from it, if so.
(fhandler_pty_slave::write): Drop output_mutex locking.
(fhandler_pty_master::fhandler_pty_master): Initialize echo pipe
handles to NULL.
(fhandler_pty_master::close): Close and NULL echo pipe handles.
(fhandler_pty_master::setup): Create echo pipe, close in case of error.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* libc/include/machine/time.h (_CLOCKS_PER_SEC_): redefine for RTEMS.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* sem.cc: Ditto.
* shm.cc: Ditto.
|
| |
|
|
|
|
|
|
| |
* glob.cc (issetugid): Drop macro.
* sec_auth.cc (issetugid): New exported function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
|
|
|
|
|
| |
into group permissions if owner SID == group SID.
(alloc_sd): Add parenthesis for clarity.
|
| |
|
| |
|
|
|
|
|
| |
Align text to output of Linux tool.
(longopts): Add --access and --default options.
|
|
|
|
|
| |
(pwdgrp::add_account_post_fetch): Check return value from add_line and
return NULL if add_line returns NULL.
|
| |
|
|
|
|
| |
inheritable to better follow POSIX 1003.1e rules.
|
|
|
|
| |
permissions are 0.
|
|
|
|
| |
for SidTypeUser.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
case owner SID == group SID.
(getacl): Reverse order of SID test against group or owner sid to
prefer owner attributes over group attributes. Disable setting group
permissions equivalent to owner permissions if owner == group. Add
comment to explain why. Fix indentation.
* security.cc (get_attribute_from_acl): Change type of local variables
containing permission to mode_t. Apply deny mask to group if group SID
== owner SID to avoid Everyone permissions to spill over into group
permissions. Disable setting group permissions equivalent to owner
permissions if owner == group. Add comment to explain why.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Allow user SID as
group account if user is a "Microsoft Account". Explain why. Drop
workaround enforcing primary group "Users" for "Microsoft Accounts".
|
|
|
|
|
| |
* libc/machine/mips/memcpy.S: Fix macro indentation and typos in
comments.
|
|
|
|
|
| |
and with cw_sig_restart instead of cw_sig_eintr. Drop useless
_my_tls.call_signal_handler call. Return EIO if cygwait failed.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
cygwait should be in EINTR or in restart mode. Call signal handler
if in EINTR mode.
(mq_getattr): Call ipc_mutex_lock in restart mode.
(mq_setattr): Ditto.
(mq_notify): Ditto.
(_mq_send): Call ipc_mutex_lock in EINTR mode.
(_mq_receive): Ditto.
|
|
|
|
| |
for writing remaining bytes in readahead buffer in non-canonical mode.
|
|
|
|
| |
STANDARD_RIGHTS_ALL and FILE_WRITE_ATTRIBUTES access, too.
|
| |
|
|
|
|
|
|
|
| |
throughout.
(enum_unix_groups): Introduce numeric_psid and rearrange code to avoid
potential heap corruption.
* mkpasswd.c: Ditto.
|
|
|
|
|
|
|
|
|
|
| |
cygwait call.
* thread.cc (pthread_mutex::lock): Ditto.
(semaphore::_timedwait): Fix formatting.
(semaphore::_wait): Ditto.
* thread.h (fast_mutex::lock): Ditto.
...and fix ChangeLog accordingly.
|
|
|
|
| |
item about SSH keys not working in 1.7.34+.
|
|
|
|
| |
to DEF_USER_OBJ, DEF_GROUP_OBJ, and DEF_OTHER_OBJ ACEs.
|
|
|
|
| |
error condition for tcflush.
|
|
|
|
| |
effect when _XOPEN_SOURCE is also defined.
|
|
|
|
| |
values for db_home, db_shell, and db_gecos to the latest changes.
|
| |
|
|
|
|
| |
years.
|
|
|
|
|
| |
any secondary user to have more permissions than the primary group
in calls to chmod. Add comment to explain why.
|
|
|
|
| |
break in switch statement.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(class cyg_ldap): Remove members srch_msg and srch_entry.
(cyg_ldap::get_string_attribute): Remove private method taking index
argument.
(cyg_ldap::get_num_attribute): Ditto. Add method taking attribute name.
(cyg_ldap::get_primary_gid): Adjust to aforementioned change.
(cyg_ldap::get_unix_uid): Ditto.
(cyg_ldap::get_unix_gid): Ditto.
* ldap.cc: Throughout, use msg and entry in place of srch_msg and
srch_entry.
(std_user_attr): Add sAMAccountName and objectSid.
(group_attr): Ditto.
(cyg_ldap::close): Drop handling of srch_msg and srch_entry.
(cyg_ldap::get_string_attribute): Move earlier in file.
(cyg_ldap::get_num_attribute): Ditto.
(cyg_ldap::enumerate_ad_accounts): Add comments for clarity.
Use group_attr or user_attr rather than sid_attr to fetch all desired
attributes for an account right away.
(cyg_ldap::next_account): Store found SID in last_fetched_sid to
skip calls to fetch_ad_account from fetch_account_from_windows.
(cyg_ldap::get_string_attribute): Remove method taking index argument.
(cyg_ldap::get_num_attribute): Ditto.
* pwdgrp.h (class pg_ent): Fix formatting. Add member dom.
* passwd.cc (pg_ent::enumerate_ad): Store current flat domain name
in dom. Construct fetch_acc_t argument from LDAP attributes and
call fetch_account_from_windows with that.
* userinfo.h (enum fetch_user_arg_type_t): Rename FULL_grp_arg to
FULL_acc_arg. Change throughout.
(struct fetch_acc_t): Rename from fetch_full_grp_t. Change throughout.
(struct fetch_user_arg_t): Rename full_grp to full_acc. Change
throughout.
|
|
|
|
|
|
|
|
|
| |
* fhandler.cc (fhandler_base::set_flags): Set was_nonblocking if the
O_NONBLOCK flag has been specified.
(fhandler_base_overlapped::close): Check for was_nonblocking instead
of for is_nonblocking. Explain why.
(fhandler_base::set_nonblocking): Set was_nonblocking if noblocking
mode gets enabled.
|
| |
|