[prev in list] [next in list] [prev in thread] [next in thread]
List: mingw-users
Subject: Re: [Mingw-users] UNC path issue and copying files
From: "Page, Andy (UK)" <Andy.Page3 () baesystems ! com>
Date: 2009-06-26 12:19:23
Message-ID: 75F36E2A242F1441ABDB5FA05E31B22D02371630 () GLKMS2100 ! GREENLNK ! NET
[Download RAW message or body]
--===============4187851774542143713==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C9F658.577A6D0F"
This is a multi-part message in MIME format.
I have tried the latest release candidate of MSYS, the problem nolonger
exist - so please ignore previous posting.
________________________________
From: Page, Andy (UK)
Sent: 25 June 2009 18:56
To: mingw-users@lists.sourceforge.net
Subject: [Mingw-users] UNC path issue and copying files
*** WARNING ***
This message has originated outside your organisation,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
I have noticed when copying files from say /c/ to a directory specified
by a UNC path that the \r symbol is being placed in the file just before
any \n.
This is not really a problem for Text files but the same is also
happening for Exe files as well ( which is serious )
ls -l line.exe
-rwxr-xr-x 1 andy.pag Administ 65024 Jun 25 18:25 line.exe
cp line.exe //greenlnk.net/MATH/APPS/CEM
ls //greenlnk.net/MATH/APPS/CEM/line.exe
-rwxr-xr-x 1 andy.pag Administ 65218 Jun 25 18:45 line.exe
Copying to same directory via mounted drive letter.
cp line.exe /v/MATH/APPS/CEM
ls //greenlnk.net/MATH/APPS/CEM/line.exe
-rwxr-xr-x 1 andy.pag Administ 65024 Jun 25 18:56 line.exe
So how can i prove what i am proposing here.
Firstly if i drag the file via explorer to either the UNC or Drive path
directory the size is unchanged.( Thus not function of Windows ).
If i extract all \n out of the exe and transfer then the size stays the
same
cat line.exe | tr -d "\n" > tmp
ls -l tmp
-rwxr-xr-x 1 andy.pag Administ 64789 Jun 25 18:57 tmp
cp tmp //greenlnk.net/MATH/APPS/CEM
ls -l
//greenlnk.net/MATH/APPS/CEM/tmp
-rwxr-xr-x 1 andy.pag Administ 64789 Jun 25 18:58 tmp
This is the sort of issue you got with old style ftp.
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3527" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=562581712-26062009>I have tried the latest release candidate of MSYS, the
problem nolonger exist - so please ignore previous
posting.</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Page, Andy (UK) <BR><B>Sent:</B> 25 June
2009 18:56<BR><B>To:</B> mingw-users@lists.sourceforge.net<BR><B>Subject:</B>
[Mingw-users] UNC path issue and copying files<BR></FONT><BR></DIV>
<DIV></DIV><PRE> *** WARNING ***
This message has originated outside your organisation,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
</PRE>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>I have noticed when copying files from say /c/ to a
directory specified by a UNC path that the \r symbol is being
placed in the file just before any \n. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>This is not really a problem for Text files but
the same is also happening for Exe files as well ( which is serious
)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>ls -l line.exe</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>-rwxr-xr-x 1 andy.pag
Administ 65024 Jun 25 18:25 line.exe<BR></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>cp line.exe
//greenlnk.net/MATH/APPS/CEM</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>ls
//greenlnk.net/MATH/APPS/CEM/line.exe</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>-rwxr-xr-x 1 andy.pag
Administ 65218 Jun 25 18:45 line.exe<BR></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>Copying to same directory via mounted drive
letter.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>cp line.exe /v/MATH/APPS/CEM</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>ls
//greenlnk.net/MATH/APPS/CEM/line.exe</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>-rwxr-xr-x 1 andy.pag
Administ 65024 Jun 25 18:56
line.exe<BR></DIV></SPAN></FONT></SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>So how can i prove what i am proposing
here.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>Firstly if i drag the file via explorer to either the
UNC or Drive path directory the size is unchanged.( Thus not function of
Windows ).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>If i extract all \n out of the exe and transfer
then the size stays the same</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>cat line.exe | tr -d "\n" > tmp<BR>ls -l
tmp</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>-rwxr-xr-x 1 andy.pag
Administ 64789 Jun 25 18:57 tmp<BR>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>cp tmp
//greenlnk.net/MATH/APPS/CEM</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>ls -l </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>//greenlnk.net/MATH/APPS/CEM/tmp</SPAN></FONT></DIV></DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009><SPAN
class=495503417-25062009>-rwxr-xr-x 1 andy.pag
Administ 64789 Jun 25 18:58 tmp<BR></SPAN></DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=495503417-25062009>This is the sort of issue you got with old style
ftp.</DIV></SPAN></FONT><BR>********************************************************************<BR>This
email and any attachments are confidential to the intended<BR>recipient and may
also be privileged. If you are not the intended<BR>recipient please delete it
from your system and notify the sender.<BR>You should not copy it or use it for
any purpose nor disclose or<BR>distribute its contents to any other
person.<BR>********************************************************************<BR><BR></BODY></HTML>
[Attachment #4 (--===============4187851774542143713==)]
------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.
Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic