Commit 77b4290b authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

merge

parents 532d9c30 c4b35f92
...@@ -89,15 +89,11 @@ end: ...@@ -89,15 +89,11 @@ end:
int my_copystat(const char *from, const char *to, int MyFlags) int my_copystat(const char *from, const char *to, int MyFlags)
{ {
struct stat statbuf; MY_STAT statbuf;
if (stat(from, &statbuf)) if (my_stat(from, &statbuf, MyFlags) == NULL)
{
my_errno=errno;
if (MyFlags & (MY_FAE+MY_WME))
my_error(EE_STAT, MYF(ME_BELL+ME_WAITTANG),from,errno);
return -1; /* Can't get stat on input file */ return -1; /* Can't get stat on input file */
}
if ((statbuf.st_mode & S_IFMT) != S_IFREG) if ((statbuf.st_mode & S_IFMT) != S_IFREG)
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment