chiark / gitweb /
time-util: when formatting usec_t as raw integers use PRIu64
[elogind.git] / src / basic / copy.c
index 4e5f392fe59fdc8b7a74bbdb84ea482a117f916d..20078a81e23e417c18d73a95b7d0d17c360a456f 100644 (file)
@@ -333,7 +333,7 @@ static int fd_copy_directory(
                 struct stat buf;
                 int q;
 
-                if (STR_IN_SET(de->d_name, ".", ".."))
+                if (dot_or_dot_dot(de->d_name))
                         continue;
 
                 if (fstatat(dirfd(d), de->d_name, &buf, AT_SYMLINK_NOFOLLOW) < 0) {