* chmod.c (stat_file): Allow chmod and chown on special files.

This commit is contained in:
Pavel Roskin 2001-04-06 20:06:03 +00:00
parent 6827099bbb
commit 4e64d43cf1
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,7 @@
2001-04-06 Pavel Roskin <proski@gnu.org>
* 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

View File

@ -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;
}