diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-01 22:43:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-01 22:43:28 -0500 |
commit | f7dda6c625c7b12a1d4635a679e442250a0f69f0 (patch) | |
tree | 9f585f8d382e8a388b06711caf418fcfe5ee6abe /src/basic/copy.c | |
parent | ef2f4f911b6a6499db4468570ed868add45b3069 (diff) | |
parent | 9ff233dc1fa2f47fc4499a12a8ee0640aba30657 (diff) |
Merge pull request #5203 from poettering/dotdot
trivial unification of checking for "." and ".." when iterating through directories...
Diffstat (limited to 'src/basic/copy.c')
-rw-r--r-- | src/basic/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/copy.c b/src/basic/copy.c index 9883f5fa31..e9a7efd232 100644 --- a/src/basic/copy.c +++ b/src/basic/copy.c @@ -331,7 +331,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) { |