File libfaketime-0.9.6-gcc6.patch of Package libfaketime
Index: libfaketime-0.9.6/src/libfaketime.c
===================================================================
--- libfaketime-0.9.6.orig/src/libfaketime.c
+++ libfaketime-0.9.6/src/libfaketime.c
@@ -510,13 +510,10 @@ int __xstat (int ver, const char *path,
return -1;
}
- if (buf != NULL)
- {
if (!fake_stat_disabled)
{
fake_statbuf(buf);
}
- }
return result;
}
@@ -539,13 +536,11 @@ int __fxstat (int ver, int fildes, struc
return -1;
}
- if (buf != NULL)
- {
if (!fake_stat_disabled)
{
fake_statbuf(buf);
}
- }
+
return result;
}
@@ -568,13 +563,11 @@ int __fxstatat(int ver, int fildes, cons
return -1;
}
- if (buf != NULL)
- {
if (!fake_stat_disabled)
{
fake_statbuf(buf);
}
- }
+
return result;
}
#endif
@@ -597,13 +590,11 @@ int __lxstat (int ver, const char *path,
return -1;
}
- if (buf != NULL)
- {
if (!fake_stat_disabled)
{
fake_statbuf(buf);
}
- }
+
return result;
}
@@ -625,13 +616,11 @@ int __xstat64 (int ver, const char *path
return -1;
}
- if (buf != NULL)
- {
if (!fake_stat_disabled)
{
fake_stat64buf(buf);
}
- }
+
return result;
}
@@ -653,13 +642,11 @@ int __fxstat64 (int ver, int fildes, str
return -1;
}
- if (buf != NULL)
- {
if (!fake_stat_disabled)
{
fake_stat64buf(buf);
}
- }
+
return result;
}
@@ -682,13 +669,11 @@ int __fxstatat64 (int ver, int fildes, c
return -1;
}
- if (buf != NULL)
- {
if (!fake_stat_disabled)
{
fake_stat64buf(buf);
}
- }
+
return result;
}
#endif
@@ -711,13 +696,11 @@ int __lxstat64 (int ver, const char *pat
return -1;
}
- if (buf != NULL)
- {
if (!fake_stat_disabled)
{
fake_stat64buf(buf);
}
- }
+
return result;
}
#endif