]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(copy_internal): Don't #ifdef-out simple uses of
authorJim Meyering <jim@meyering.net>
Sun, 12 Oct 2003 07:03:57 +0000 (07:03 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 12 Oct 2003 07:03:57 +0000 (07:03 +0000)
S_ISLNK or S_ISSOCK.  The S_IS* macros are guaranteed to be defined
via system.h.

src/copy.c

index 283b6952d69406de047a79dfea39a49e6dc0a6e7..3981f9cc89db67dc693d5a56ceefccc1bc4d58d2 100644 (file)
@@ -1400,10 +1400,7 @@ copy_internal (const char *src_path, const char *dst_path,
     }
   else if (S_ISREG (src_type)
           || (x->copy_as_regular && !S_ISDIR (src_type)
-#ifdef S_ISLNK
-              && !S_ISLNK (src_type)
-#endif
-              ))
+              && !S_ISLNK (src_type)))
     {
       copied_as_regular = 1;
       /* POSIX says the permission bits of the source file must be
@@ -1426,10 +1423,7 @@ copy_internal (const char *src_path, const char *dst_path,
   else
 #endif
     if (S_ISBLK (src_type) || S_ISCHR (src_type)
-#ifdef S_ISSOCK
-       || S_ISSOCK (src_type)
-#endif
-       )
+       || S_ISSOCK (src_type))
     {
       if (mknod (dst_path, get_dest_mode (x, src_mode), src_sb.st_rdev))
        {