diff --git a/src/ChangeLog b/src/ChangeLog index 552e9251e..5988e8a20 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2001-04-06 Pavel Roskin + * chmod.c (stat_file): Allow chmod and chown on special files. + * cons.handler.c: Include "global.h" for exit(). * Makefile.in: Add dependencies between mc and static libraries diff --git a/src/chmod.c b/src/chmod.c index 645ead34b..29c4fe9cc 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -255,9 +255,6 @@ int stat_file (char *filename, struct stat *st) { if (mc_stat (filename, st)) return 0; - if (!(S_ISREG(st->st_mode) || S_ISDIR(st->st_mode) || - S_ISLNK(st->st_mode))) - return 0; return 1; }