mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* chmod.c (stat_file): Allow chmod and chown on special files.
This commit is contained in:
parent
6827099bbb
commit
4e64d43cf1
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user