diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3f80bc7f0..2b8553b3a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-03-30 Christopher Faylor + + * external.cc (cygwin_internal): Implement CW_SET_DOS_FILE_WARNING. + * include/sys/cygwin.h: Define CW_SET_DOS_FILE_WARNING. + 2007-03-29 Corinna Vinschen * cygheap.cc (cygheap_init): Fix formatting. Remove comment. Set diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 4cc539e6a..b6b64f14d 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -350,6 +350,13 @@ cygwin_internal (cygwin_getinfo_types t, ...) return 0; case CW_CYGTLS_PADSIZE: return CYGTLS_PADSIZE; + case CW_SET_DOS_FILE_WARNING: + { + extern bool dos_file_warning; + dos_file_warning = va_arg (arg, int); + } + break; + default: break; } diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h index 26bfee086..7cc36c434 100644 --- a/winsup/cygwin/include/sys/cygwin.h +++ b/winsup/cygwin/include/sys/cygwin.h @@ -87,7 +87,8 @@ typedef enum CW_ENVP, CW_DEBUG_SELF, CW_SYNC_WINENV, - CW_CYGTLS_PADSIZE + CW_CYGTLS_PADSIZE, + CW_SET_DOS_FILE_WARNING } cygwin_getinfo_types; #define CW_NEXTPID 0x80000000 /* or with pid to get next one */ diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 9d4d88245..8407fb304 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2007-03-30 Christopher Faylor + + * mount.cc (main): Turn dos file warnings off since we know what we're + doing. + 2007-02-22 Corinna Vinschen * ipcs.c (_POSIX2_LINE_MAX): Drop definition. diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc index ec2d9b63e..ae447112c 100644 --- a/winsup/utils/mount.cc +++ b/winsup/utils/mount.cc @@ -348,6 +348,8 @@ main (int argc, char **argv) exit (1); } + cygwin_internal (CW_SET_DOS_FILE_WARNING, false); + argc--; switch (do_what) {