delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/22/16:01:46

From: bruceh AT ns1 DOT ieighty DOT net (Bruce N. Hunsaker)
Subject: mv and cp bug
22 Jan 1998 16:01:46 -0800 :
Message-ID: <199801201907.MAA09214.cygnus.gnu-win32@ns1.ieighty.net>
To: gnu-win32 AT cygnus DOT com

When using mv or cp -p  the error 'invalid argument'
is returned. (FAT filesystems).

I traced this down the chown() call which fails with
EINVAL, which is technically correct since there is 
no ownership on files on FAT file systems, but since we
are trying to be UNIX, it seems that in this case,
chown should either do nothing, and return success, or
else a method of implementing file ownership 
on FAT filesystems should be devised.

I patched my version of cp.c and mv.c to ignore errors
of EINVAL. This way things will work correctly for both FAT
and NTFS file systems.

--
Bruce Hunsaker -- bruceh AT ieighty DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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