delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/17/12:23:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 17 Dec 2004 09:22:57 -0800
From: Eric Schweitz <schweitz AT reservoir DOT com>
To: cygwin AT cygwin DOT com
Subject: [?@yahoo.com: Found problem of floppy drive acces]
Message-ID: <20041217172257.GB442@fiji.reservoir.com>
Mime-Version: 1.0
User-Agent: Mutt/1.4.1i

----- Forwarded message from Vijay Jaswal -----

Hello again,

I found where the floppy drive was being access and it's definately a
problem of Cygwin.

/etc/profile is invoked when "bash --login" is used, which is used in the 
cygwin.bat file.  Without the --login (or -l) option, /etc/profile is not
touched and the floppy drives aren't either.

In /etc/profile, the following block is the problem; search for "profile.d".

> # Run all of the profile.d scripts
> # Note that these are supplied by separate packages
> # Ascending alphanumerical order enforced
> if [ -d "/etc/profile.d" ]; then
> 	while read f; do
> 		if [ -f "${f}" ]; then
> 			. "${f}"
> 		fi
> 	done <<- EOF
> 	`/bin/find /etc/profile.d -iname '*.sh' -type f | sort`
> 	EOF
> fi

The find command is invoked, and it is hitting the floppy, no matter what
options are supplied: "/bin/find --version" and "/bin/find --help" both 
hit the floppy drive, which is clearly a blunder.

BTW, /bin/df is also screwed up, but not as badly:
"df ." hits the floppy, even the current directory is a harddrive,
but "df --version" and "df --help" are fine and not brain-dead.

So, there are bugs in a few places, but /bin/find is definately one of
them. BTW, could you inform the mailing list about this (without using 
my email address)?

-vijay

----- End forwarded message -----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019