From 0fb61528c94f959e5c1bfc9aeab7e09d0dcbf54b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 6 Sep 2001 02:38:22 +0000 Subject: [PATCH] * Makefile.in (dumper): Change logic for libbfd and libintl so that they will be found either in the build tree or the installed directory. * mkpasswd.c (enum_users): Add a comment as a password for NT. --- winsup/utils/ChangeLog | 6 ++++++ winsup/utils/Makefile.in | 8 ++++---- winsup/utils/mkpasswd.c | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 1ae3d9ade..e51ec6214 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,9 @@ +Wed Sep 5 22:37:21 2001 Christopher Faylor + + * Makefile.in (dumper): Change logic for libbfd and libintl so that + they will be found either in the build tree or the installed directory. + * mkpasswd.c (enum_users): Add a comment as a password for NT. + 2001-09-03 Michael A Chase * mount.cc (mount_commands): Don't write /cygdrive/u mount points. diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in index c5e5855b0..12e1cbde2 100644 --- a/winsup/utils/Makefile.in +++ b/winsup/utils/Makefile.in @@ -37,9 +37,9 @@ include $(srcdir)/../Makefile.common MINGW_INCLUDES:=-I$(mingw_source)/include -I$(cygwin_source)/include -I$(w32api_include) -libbfd:=$(bupdir2)/bfd/libbfd.a -libintl:=$(bupdir2)/intl/libintl.a -build_dumper:=${shell test -r $(libbfd) -a -r $(libintl) -a -d $(updir1)/include && echo 1} +libbfd:=${shell $(CC) -L$(bupdir2)/bfd --print-file-name=libbfd.a} +libintl:=${shell $(CC) -L$(bupdir2)/intl --print-file-name=libintl.a} +build_dumper:=${shell test -r $(libbfd) && test -r ${libintl} && echo 1} DUMPER_INCLUDES:=-I$(bupdir2)/bfd -I$(updir1)/include @@ -59,7 +59,7 @@ ALL_LDLIBS:=${patsubst $(w32api_lib)/lib%.a,-l%,\ ${filter-out $(libcygwin), $(ALL_DEP_LDLIBS)}}}} MINGW_LIB:=$(mingw_build)/libmingw32.a -DUMPER_LIB:=-L$(bupdir2)/bfd -lbfd -L$(bupdir1)/libiberty -liberty -L$(bupdir2)/intl -lintl +DUMPER_LIB:=${libbfd} ${libintl} -L$(bupdir1)/libiberty -liberty MINGW_LDLIBS:=$(ALL_LDLIBS) $(MINGW_LIB) MINGW_DEP_LDLIBS:=${ALL_DEP_LDLIBS} ${MINGW_LIB} ALL_LDFLAGS:=-B$(newlib_build)/libc/ -B$(newlib_build)/libm/ -B$(w32api_lib)/ \ diff --git a/winsup/utils/mkpasswd.c b/winsup/utils/mkpasswd.c index 1a4969801..e16edcffc 100644 --- a/winsup/utils/mkpasswd.c +++ b/winsup/utils/mkpasswd.c @@ -206,7 +206,7 @@ enum_users (LPWSTR servername, int print_sids, int print_cygpath, } } } - printf ("%s::%d:%d:%s%s%s:%s:/bin/bash\n", username, + printf ("%s:This_field_is_not_used_by_cygwin_on_nt/2000/xp:%d:%d:%s%s%s:%s:/bin/bash\n", username, uid + id_offset, gid + id_offset, fullname, -- 2.43.5