e40670ee48* cygheap.h (cygheap_user::issetuid): New method. * dtable.cc (dtable::vfork_child_dup): Use new method to determine if we are in "setuid mode." * fork.cc (fork_parent): Ditto. * spawn.cc (spawn_guts): Ditto. * syscalls.cc (seteuid32): Ditto. (setegid32): Ditto. * environ.cc (spenv::retrieve): (Suggested by Pierre Humblet) Do potential recalculation of cygheap_user stuff when in setuid mode. Return special value when environment variable exists but should not be added. (build_env): Don't add retrieved value to dstp if it is 'dont_add'.
Christopher Faylor
2002-06-16 23:34:43 +0000
1464d11b4b2002-06-16 Steven Edwards <Steven_Ed4153@yahoo.com>
Danny Smith
2002-06-16 07:19:34 +0000
a05a9e0123Changes suggested by Pierre Humblet. * environ.cc (NL): New macro. (conv_envvars): Use NL macro to fill in name and namelen. (spenv::namelen): New field. (spenvs): Use NL to fill in name and namelen. (spenv::retrieve): Eliminate length argument. Instead, use namelen throughout. (build_env): Don't calculate length of initial FOO= part of environment. Accommodate spenv::retrive argument change.
Christopher Faylor
2002-06-16 05:45:37 +0000
5f25e1d11a* cygheap.h (cygheap_user::winname): New field. * cygheap.cc (cygheap_user::set_name): Clear winname when name changes. * uinfo.cc (cygheap_user::env_logsrv): Avoid calculating server when Windows user == SYSTEM. (cygheap_user::env_domain): Set winname here too. (cygheap_user::env_userprofile): Eliminate superfluous tests. (cygheap_user::env_name): Seed winname by calling env_domain().
Christopher Faylor
2002-06-16 05:26:14 +0000
5c8bce24b3* spawn.cc (spawn_guts): Revert removal of ciresrv.moreinfo->uid = ILLEGAL_UID.
Christopher Faylor
2002-06-16 04:25:54 +0000
6ea3e429df* child_info.h (child_proc_info): Declare as base class. (spawn_info): Declare as alias of child_proc_info to aid debugging. (fork_info): Ditto. * cygheap.cc (cygheap_fixup_in_child): Use child_proc_info global rather than parameter. * cygheap.h (cygheap_fixup_in_child): Reflect above change in declaration. * dcrt0.cc (_dll_crt0): Move 'si' definition here. Assign child_proc_info. (dll_crt0_1): Accommodate cygheap_fixup_in_child and *_info changes. * environ.cc (spenv::retrieve): Make regparm. * environ.h (environ_init): Ditto. (win_env::add_cache): Ditto. (build_env): Ditto. (getwinenv): Ditto. * fork.cc (sync_with_parent): Use fork_info global. (fork_child): Ditto.
Christopher Faylor
2002-06-15 21:59:32 +0000
5ae611458b* include/_mingw.h: Increment to version 2.1. * Makefile.in: Ditto.
Earnie Boyd
2002-06-15 15:56:58 +0000
00f55bc3a9* Makefile.in (conf_prefix): New variable. (dist_prefix): Ditto. Conditionally set to $(conf_prefix). (bindist): Use dist_prefix.
Earnie Boyd
2002-06-15 14:06:21 +0000
ece3c72f16* libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
Thomas Fitzsimmons
2002-06-15 02:08:12 +0000
cff111a6bf* uinfo.cc (cygheap_user::ontherange): Don't set HOMEDRIVE or HOMEPATH unless one or the other is specified.
Christopher Faylor
2002-06-15 01:17:45 +0000
6d171b4482* cygheap.h (cygheap_user::userprofile_env_buf): New static member. * environ.cc (build_env): Add debugging statement. (spenvs): Switch functions for USERDOMAIN and USERNAME. * spawn.cc (spawn_guts): Move environment initialization prior to cygheap_setup_for_child or environment info will never be copied to child.
Christopher Faylor
2002-06-14 21:46:19 +0000
b56d7e7937* libc/argz: New directory. * libc/argz/*: New files. * libc/argz/argz_add.c: New file. * libc/argz/argz_add_sep.c: New file. * libc/argz/argz_append.c: New file. * libc/argz/argz_count.c: New file. * libc/argz/argz_create.c: New file. * libc/argz/argz_create_sep.c: New file. * libc/argz/argz_delete.c: New file. * libc/argz/argz_extract.c: New file. * libc/argz/argz_insert.c: New file. * libc/argz/argz_next.c: New file. * libc/argz/argz_replace.c: New file. * libc/argz/argz_stringify.c: New file. * libc/argz/buf_findstr.c: New file. * libc/argz/envz_add.c: New file. * libc/argz/envz_entry.c: New file. * libc/argz/envz_get.c: New file. * libc/argz/envz_merge.c: New file. * libc/argz/envz_remove.c: New file. * libc/argz/envz_strip.c: New file. * libc/include/argz.h: New file. * libc/include/envz.h: New file. * Makefile.am (LIBC_OBJECTLISTS): Add libc/argz/objectlist.awk.in. * libc/Makefile.am (SUBDIRS): Add argz. (SUBLIBS): Add argz/libargz.la. * libc/configure.in (AC_OUTPUT): Add argz/Makefile. * libc/include/errno.h: Add error_t typedef.
Thomas Fitzsimmons
2002-06-14 20:51:09 +0000
a77d35f7d2* cygheap.h (cygheap_user): Add static members to hold home{drive,path} info. * uinfo.cc (cygheap_user::ontherange): Use static class members for local HOME* storage.
Christopher Faylor
2002-06-14 20:36:42 +0000
9a771b2961* cygheap.cc (cygheap_user::set_logsrv): Remove. (cygheap_user::set_domain): Ditto. * cygheap.h (cygheap_user::set_logsrv): Remove declaration. (cygheap_user::set_domain): Ditto. (cygheap_user::env_domain): Declare new method. (cygheap_user::env_name): Ditto. * environ.cc (spenvs): Add two environment variables. * spawn.cc (spawn_guts): Call build_env after RevertToSelf. Always set ciresrv.mount_h. (cygheap_user::ontherange): Recalculate homedrive/homepath if they are empty. Use env_logsrv to get logon server. (cygheap_user::env_logsrv): Calculate server name here rather than relying on it having been previously calculated. (cygheap_user::env_domain): Ditto for domain name. (cygheap-user::env_name): New method. * syscalls.cc (seteuid32): Do not get or set the environment. Do not call LookupAccountSid nor internal_getlogin. Set cygheap->user name and sid from the passwd entry. * uinfo.cc (uinfo_init): Only call internal_getlogin when starting from a non Cygwin process and use the values returned in user. (internal_getlogin): Simplify to case where starting from a non Cygwin process. Store return values in user and return void. Do not set the Windows default environment. * dcrt0.cc (dll_crt0_1): Call uinfo_init only when needed. Do not set myself->uid nor reset user.sid. * spawn.cc (spawn_guts): Get the sid from cygheap->user. Always RevertToSelf(). Don't set uid in impersonated case. * cygheap.cc (cygheap_user::set_sid): Do not set orig_sig. (cygheap_user::set_orig_sid): New. * cygheap.h: Declare cygheap_user::set_sid. * winsup.h: Add argument to uinfo_init().
Christopher Faylor
2002-06-14 18:01:21 +0000
470e8c460d* environ.cc (build_env): If realloc moves envblock, move s with it.
Corinna Vinschen
2002-06-14 14:08:07 +0000
ced1e577b7* include/w32api.h: Change to version 2.0 to reflect the change in the license. * README: Renamed. * README.w32api: Renamed from README. Modified license to remove the restriction of notifying the author based on the fact that the author is unreachable at the notified address. * Makefile.in (VERSION): Change to 2.0.
Earnie Boyd
2002-06-14 13:46:12 +0000
94a23f4860* passwd.c: Rearrange includes to avoid unnecessary warnings. (GetPW): Add parameter to (dis)allow printing of Windows username. Use defines instead of numerical constants where possible. Try avoiding impersonation problem. Rearrange to print Windows username only if it's different from Cygwin username. (ChangePW): Use defines instead of numerical constants where possible. (main): Call GetPW with additional parameter. Change error text.
Corinna Vinschen
2002-06-14 11:31:33 +0000
13f7d71fee* libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code): Fix clobbering bytes before destination if src and dst have same non-zero misalignment.
Joern Rennecke
2002-06-13 18:25:19 +0000
7bbed70832fix typo
Christopher Faylor
2002-06-13 17:28:50 +0000
39be53dc4c* winver.rc: Add more words to copyright.
Christopher Faylor
2002-06-13 17:28:11 +0000
0e6d80e4fa* cygheap.cc (cygheap_user::set_name): Revert previous change. * environ.cc (spenv::retrieve): Check return value of call to cygheap->user.*from_cygheap().
Corinna Vinschen
2002-06-13 16:30:18 +0000
1f1fb4210d* libc/machine/sh/memset.S (memset, __SHMEDIA__ code): Fixed bug in writing end of set region.
Joern Rennecke
2002-06-13 14:53:17 +0000
5682a6dd3d* cygheap.cc (cygheap_user::set_name): Remove setting homedrive and homepath to NULL. (cygheap_user::set_logsrv): Fix free'ing of plogsrv. * cygheap.h (cygheap_user::cygheap_user): Initialize homedrive and homepath to NULL.
Corinna Vinschen
2002-06-13 11:35:11 +0000
dc8971488e* include/_mingw.h: Increment version to 2.0. * Makefile.in: Ditto. Merge in mingwex branch.
Danny Smith
2002-06-13 10:20:48 +0000
5f74ae83e5* security.cc (get_logon_server): Use strcasematch rather than strcasecmp.
Christopher Faylor
2002-06-13 05:30:49 +0000
4863867ab9* path.cc (chdir): Minor cleanup.
Christopher Faylor
2002-06-13 03:04:50 +0000
12a2ef4462* environ.cc (build_env): Correctly fill out windows environment block with win32 paths rather than posix paths.
Christopher Faylor
2002-06-13 01:28:51 +0000
b89a2aac332002-06-13 John K. Hohm <jhohm@acm.org>
Danny Smith
2002-06-13 00:13:34 +0000
65826b61a9Add the file include/gdb/sim-arm.h defining an enum that specifies the register numbering used by the GDB<->SIM interface.
Andrew Cagney
2002-06-12 21:19:42 +0000
325268e1c1Add dumper.exe words from Egor Duda.
Christopher Faylor
2002-06-12 16:06:10 +0000
2e1c9cc889* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
DJ Delorie
2002-06-12 15:04:45 +0000
da086d020c* cygheap.cc (cygheap_user::set_name): Set homedrive and homepath to NULL on user name change. (cygheap_user::set_logsrv): Allocate enough space for leading \\ so that we can put this in the environment, if needed. * cygheap.h (homebodies): New enum. (cygheap_user::homedrive): New field. (cygheap_user::homepath): Ditto. (cygheap_user::env_logsrv): New method. (cygheap_user::env_homepath): New method. (cygheap_user::env_homedrive): New method. (cygheap_user::env_userprofile): New method. (cygheap_user::ontherange): New method. * environ.cc (envsize): Eliminate debugging argument. (environ_init): Assume that envc counts number of elments not total size. (spenv): New class. (spenvs): New array, renamed from forced_winenv_vars, using spenv. (spenv::retrieve): New method. (build_env): Rename from 'winenv' -- one stop shopping for building new environment blocks for both windows and "unix". * environ.h (build_env: Declare. (winenv): Delete declaration. (envsize): Ditto. * spawn.cc (spawn_guts): Use build_env to build windows and cygwin environment blocks. * uinfo.cc (internal_getlogin): Eliminate environment manipulation. Default to info from GetUserName if it exists. Move HOMEPATH and HOMEDRIVE stuff elsewhere. Move HOME setting elsewhere. Only set HOME environment variable in processes that are not parented by a cygwin process. (cygheap_user::ontherange): Define new method. (cygheap_user::env_logsrv): Ditto. (cygheap_user::env_homepath): Ditto. (cygheap_user::env_homedrive): Ditto. (cygheap_user::env_userprofile): Ditto.
Christopher Faylor
2002-06-12 05:13:54 +0000
09c95bb14ffix comment
Christopher Faylor
2002-06-11 23:30:48 +0000
077d8b23c8* spawn.cc (spawn_guts): More hToken removal cleanup.
Christopher Faylor
2002-06-11 16:06:16 +0000
2fbf4a7f36Import latest version of texi2pod.pl from FSF GCC sources.
Nick Clifton
2002-06-11 15:34:33 +0000
ec43b44bb6Revoke adding mh-s390xpic. Doesn't make any sense because it is not referenced from anywhere.
Martin Schwidefsky
2002-06-11 13:34:24 +0000
30b212134b2002-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
Martin Schwidefsky
2002-06-11 09:46:38 +0000
d5377829a8* spawn.cc (spawn_guts): Define sec_attribs and call sec_user_nih() only once.
Christopher Faylor
2002-06-11 02:22:02 +0000
380aaf2d2c* Makefile.in: Ensure that -MD gets added to CFLAGS regardless of CFLAGS command-line setting. * cygwin.din: Export sexec* functions as function which returns ENOSYS (i.e., sexec* is deprecated). * dtable.cc (dtable::vfork_child_dup): Ensure that impersonation is restored even on failure. * exec.cc: Throughout, remove references to sexec* and _spawnve. * pinfo.h: Remove _spawnve declaration. * spawn.cc: Rename _spawnve to spawnve and use throughout. (spawn_guts): Eliminate hToken argument and processing of same. Just perform special actions if impersonating. (spawnve): Rename from _spawnve.
Christopher Faylor
2002-06-11 02:08:00 +0000
85a238e1e8revert erroneous checkin
Christopher Faylor
2002-06-10 19:59:19 +0000
b01cbd5de2* include/sys/strace.h (strace): Avoid use of constructor.
Christopher Faylor
2002-06-10 19:58:21 +0000
fe4283af7a* dcrt0.cc (dll_crt0_1): Initialize wincap and check for sanity before running global ctors. * wincap.h (wincap): Eliminate constructor. Default is to zero memory, anyway. * wincap.cc (wincap): Copy this on fork to avoid initialization in forked processes.
Christopher Faylor
2002-06-10 17:08:09 +0000
3d78e129b7* fhandler.h (fhandler_socket::fixup_after_fork): Revert patch from 2002-06-04. * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Ditto. (fhandler_socket::dup): Ditto. * net.cc (fdsock): Make sockets explicitely noninheritable on NT.
Corinna Vinschen
2002-06-10 11:07:44 +0000
43c3c4e37c/tmp/cvs610a0a90.1
Robert Collins
2002-06-10 02:40:13 +0000
c2102631fc* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Correctly set number of links for directory, if appropriate.
Christopher Faylor
2002-06-10 01:25:47 +0000
007276b30e2002-06-10 Robert Collins <rbtcollins@hotmail.com>
Robert Collins
2002-06-10 01:10:45 +0000
fec98ec9932002-06-10 Robert Collins <rbtcollins@hotmail.com>
Robert Collins
2002-06-09 23:02:00 +0000
a1178695fcMove include/callback.h and include/remote-sim.h to include/gdb/. Update accordingly.
Andrew Cagney
2002-06-09 15:45:44 +0000
548e0dad4b* path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE. (getmntent): Ditto.
Christopher Faylor
2002-06-09 05:08:44 +0000
3c1736432d2002-06-09 Gunnar Degnbol <gdegnbol@users.sourceforge.net>
Danny Smith
2002-06-09 05:02:01 +0000
94cc482c64* mount.cc (main): Use default system/user flag for cygdrive stuff, too. (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE. * umount.cc (remove_cygdrive_prefix): Ditto. (main): Use default system/user flag for cygdrive stuff, too.
Christopher Faylor
2002-06-09 04:54:32 +0000
7ac66bdda0* pinfo.cc (pinfo_dummy): Initialize to correct size.
Christopher Faylor
2002-06-09 03:54:07 +0000
63f4c63a19* include/windows.h (ole2.h): #include if !__OBJC__ and __GNUC__ >=3 and !WIN32_LEAN_AND_MEAN.
Danny Smith
2002-06-09 03:37:20 +0000
6643e348be* configure.in (vax-*-netbsd*): Re-enable gas.
Jason Thorpe
2002-06-09 01:32:19 +0000
a004a5b8fb* path.cc: Change MOUNT_AUTO to MOUNT_CYGDRIVE throughout. * shared_info.h (CURR_MOUNT_MAGIC): Update.
Christopher Faylor
2002-06-09 00:48:38 +0000
50484e8e36* external.cc (cygwin_internal): Make v1 mount table access invalid. * path.cc (mount_info::init): Remove had_to_create_mount_areas initialization. (mount_info::from_registry): Remove v1 table import. (mount_info::read_v1_mounts): Eliminate. (mount_info::import_v1_mounts): Ditto. * shared_info.h (mount_info): Ditto for both of above. * sys/mount.h (MOUNT_DEVFS): New enum. (MOUNT_PROC): Ditto.
Christopher Faylor
2002-06-09 00:31:03 +0000
2e2dcba320* include/wchar.h: Define __need_size_t.
Christopher Faylor
2002-06-08 16:55:47 +0000
bdc9d6f5bf* a29k.h: Replace CONST with const. (CONST): Don't define. * convex.h: Replace CONST with const. (CONST): Don't define. * dlx.h: Replace CONST with const. * or32.h (CONST): Don't define.
Alan Modra
2002-06-08 07:32:12 +0000
f61563846dcoerce
Christopher Faylor
2002-06-08 01:35:54 +0000
9cde3cf3b5* fhandler_socket.cc (fhandler_socket::fstat): Don't assume that socket is unix-domain socket. * times.cc (hires_ms::prime): Set init flag. * times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601 to 1970.
Christopher Faylor
2002-06-08 01:24:58 +0000
2bd6505b39* cygpath.cc: Add option to output windows paths in different formats: "dos" and "mixed". (main): Process options. (doit): Check new options flags.
Christopher Faylor
2002-06-07 19:25:26 +0000
f43a747271Enable pei386_auto_import by default. Only print a info message about auto imports being resilved if this feature was not requested via a command line switch.
Nick Clifton
2002-06-07 14:56:01 +0000
381fb8baa1* regtool.cc (Fail): Be more verbose. (find_key): Add support for remote registry access. (usage): Document it. * utils.sgml: Document it.
Corinna Vinschen
2002-06-07 11:12:16 +0000
9d0efbb3ae* autoload.cc (timeGetDevCaps): Define new autoload function. (timeGetTime): Ditto. (timeBeginPeriod): Ditto. (timeEndPeriod): Ditto. * hires.h (hires_base): New class. Renamed from hires. (hires_us): New class. (hires_ms): New class. * strace.cc (strace::microseconds): Use hires_us class. * times.cc (gettimeofday): Use hires-ms class. (hires_us::prime): Renamed from hires::prime. (hires_us::usecs): Renamed from hires:usecs. (hires_ms::prime): New method. (hires_ms::usecs): New method. (hires_ms::~hires_ms): New destructor.
Christopher Faylor
2002-06-07 03:44:33 +0000
b841df7954* strace.cc (main): Make toggle a local variable.
Christopher Faylor
2002-06-07 01:37:20 +0000
80082f1ec4* strace.cc (toggle): New global variable. (error): Use exit instead of ExitProcess so that stdio buffers get flushed. (create_child): Remove command line error checking. (dostrace): Ditto. (dotoggle): New function. (usage): Add entry for new option -T|--toggle. Alphabetize. (longopts): Add new option -T|--toggle. (opts): Ditto. (main): Handle new -T|--toggle option. Move all command line checking here from other functions. * utils.sgml: Update section for strace.
Christopher Faylor
2002-06-07 01:36:17 +0000
a579a11b572002-06-07 Gunnar Degnbol <gdegnbol@users.sourceforge.net>
Danny Smith
2002-06-07 00:30:17 +0000
46b941fcf9* autoload.cc (noload): Correctly save argument count register.
Christopher Faylor
2002-06-06 23:53:45 +0000
c4e6ff484c* fhandler.cc (fhandler_base::fstat): Initialise tv_nsec member of st_atim, st_mtim, and st_ctim fields. * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Ditto. * fhandler_process.cc (fhandler_process::fstat): Ditto. * glob.c (stat32_to_STAT): Copy across the whole st_atim, st_mtime, and st_ctim fields. * syscalls.cc (stat64_to_stat32): Ditto. * times.cc (to_timestruc_t): New function. (time_as_timestruc_t): New function. * winsup.h: Add to_timestruc_t and time_as_timestruc_t functions. * include/cygwin/stat.h: Replace time_t with timestruc_t throughout for all file times, removing the st_spare1, st_spare2, and st_spare3 fields in the process. Add macros to access tv_sec fields by old names. * include/cygwin/types.h: Typedef timespec_t and timestruc_t as struct timespec.
Corinna Vinschen
2002-06-06 15:35:09 +0000
a81cc3be2amerge from gcc
DJ Delorie
2002-06-06 12:55:14 +0000
2e8abfc1c5* sec_helper.cc (lookup_name): Suppress. * security.cc (alloc_sd): Remove logsrv argument. Remove two calls to lookup_name. (set_security_attribute): Remove logsrv argument. Remove logsrv argument in call to alloc_sd. (set_nt_attribute): Remove logsrv argument. Remove logsrv argument in call to set_security_attribute. (set_file_attribute): Remove logsrv argument. Remove logsrv argument in call to set_nt_attribute. (set_file_attribute): Remove logsrv argument. Remove logsrv argument in call to set_file_attribute. * syscalls.cc (chown_worker): Remove logserver argument in call to set_file_attribute. (chmod): Ditto. * shm.cc (shmget): Remove logsrv argument in call to alloc_sd. * uinfo.cc (internal_getlogin): Replace calls to lookup_name by call to LookupAccountName. * security.h: Remove logsrv in declarations of set_file_attribute and alloc_sd. Remove declaration of lookup_name.
Corinna Vinschen
2002-06-06 11:17:51 +0000
ba692ae9c0* strace.cc (version): New global variable. (usage): Accomodate stdout output. (print_version): New function.
Christopher Faylor
2002-06-06 02:55:10 +0000
784e340c03* child_info.h (CHILD_INFO_MAGIC): Update.
Christopher Faylor
2002-06-06 01:31:16 +0000
58fcd93ae3* strace.cc (strace::hello): Set inited, when appropriate.
Christopher Faylor
2002-06-06 01:26:33 +0000
c240a7fcde* ssp.c (version): New global variable. (longopts): Ditto. (opts): Ditto. (run_program): Correct cmd_line typos to cmdline. (usage): New function. Standardize usage output. Add ssp.txt to --help output. (print_version): New function. (main): Accommodate getopt.
Christopher Faylor
2002-06-06 00:36:12 +0000
ee964e2f97* cygwin.din: Eliminate some newlib wrappers. * path.cc (get_devn): Only consider first 99 potential com devices. (get_device_number): Ditto. * times.cc (_times): Eliminate. (_times): Renamed from times().
Christopher Faylor
2002-06-06 00:09:55 +0000
39e65e01132002-06-05 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2002-06-05 20:58:59 +0000
ea4e6ec8f9* dir.cc (rmdir): Streamline. Detect attempts to remove directories from "read-only" virtual devices. (Suggested by Pavel Tsekov) * syscalls.cc (unlink): Detect attempts to remove directories from "read-only" virtual devices. (From Pavel Tsekov)
Christopher Faylor
2002-06-05 16:01:55 +0000
2bb6b3e506* dtable.cc (handle_to_fn): Check error return value from NtQueryObject first before seeing if name buffer is NULL. * grp.cc (read_etc_group): Fix gcc warning regarding snprintf format. * passwd.cc (read_etc_passwd): Ditto.
Christopher Faylor
2002-06-05 15:43:49 +0000
e9259cb240/tmp/cvs610a0efc.1
Robert Collins
2002-06-05 12:39:55 +0000
eceee297d5* grp.cc (read_etc_group): When emulating nonexisting group file on NT systems, read primary group SID from process token. Use that info to create correct group entry. On error or on 9x systems fallback to emulating Administrators group as before. (read_etc_passwd): When emulating nonexisting passwd file on NT systems, read user and primary group SID from process token. Use that info to create correct passwd entry. On error or on 9x systems fallback to emulating user with Administrator user id and Administrators group as before.
Corinna Vinschen
2002-06-05 11:56:56 +0000
38f3936889* grp.cc (etc_group): Removed. (parse_grp): Make line parameter nonconst. Don't copy data into new allocated memory. Check for CR instead of LF to accomodate new read method. (add_grp_line): Make line parameter nonconst. (read_etc_group): Rearrange using new pwdgrp_read class. * passwd.cc (parse_pwd): Don't copy data into new allocated memory. Check for CR instead of LF to accomodate new read method. (read_etc_passwd): Rearrange using new pwdgrp_read class. * pwdgrp.h (pwdgrp_check::set_last_modified): Use different parameters. (class pwdgrp_read): New class for opening and reading passwd and group files.
Corinna Vinschen
2002-06-05 11:10:15 +0000
ce006ffa7f* dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. * path.cc (mount_info::conv_to_win32_path): Set flags to binary when mount entry is not found. (mount_info::set_flags_from_win32_path): Ditto.
Christopher Faylor
2002-06-05 04:01:43 +0000
147d2ab494* dtable.cc (handle_to_fn): Correct placement and length of name buffer. (Suggested by Pavel Tsekov)
Christopher Faylor
2002-06-05 02:42:15 +0000