summaryrefslogtreecommitdiff
path: root/src/chmod.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-12 07:05:16 +0000
committerJim Meyering <jim@meyering.net>2003-10-12 07:05:16 +0000
commit4a992bfdd84fa06b11129aaf4179e941abe43635 (patch)
tree2ba2f3d39fba1d56e33b392601d70c03cf255445 /src/chmod.c
parent498de26ac5799af2c73e607927530bed1ecd02e2 (diff)
downloadcoreutils-4a992bfdd84fa06b11129aaf4179e941abe43635.tar.xz
(change_file_mode): Don't #ifdef-out a simple use of
S_ISLNK. The S_IS* macros are guaranteed to be defined via system.h.
Diffstat (limited to 'src/chmod.c')
-rw-r--r--src/chmod.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/chmod.c b/src/chmod.c
index 5f7883502..3a073fedb 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -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);