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

src/chmod.c

index 5f7883502cad95c33c0df7bf2cdeea870b5951bc..3a073fedb62f12b31ea2cd4fe8b06b9a6f7e4d6c 100644 (file)
@@ -1,5 +1,5 @@
 /* chmod -- change permission modes of files
-   Copyright (C) 89, 90, 91, 1995-2002 Free Software Foundation, Inc.
+   Copyright (C) 89, 90, 91, 1995-2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -158,10 +158,8 @@ change_file_mode (const char *file, const struct mode_change *changes,
       return 1;
     }
 
-#ifdef S_ISLNK
   if (S_ISLNK (file_stats.st_mode))
     return 0;
-#endif
 
   newmode = mode_adjust (file_stats.st_mode, changes);