mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-09 20:04:09 +03:00
* achown.c (chown_advanced_cmd): Remove dead code.
* chown.c (chown_cmd): Likewise. * chmod.c (chmod_cmd): Likewise.
This commit is contained in:
parent
0177db2941
commit
b3fbb01112
@ -1,5 +1,9 @@
|
||||
2001-08-11 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* achown.c (chown_advanced_cmd): Remove dead code.
|
||||
* chown.c (chown_cmd): Likewise.
|
||||
* chmod.c (chmod_cmd): Likewise.
|
||||
|
||||
* charsets.c (load_codepages_list): Use concat_dir_and_file().
|
||||
|
||||
* mad.h: Disable glib support - it doesn't work properly.
|
||||
|
15
src/achown.c
15
src/achown.c
@ -639,21 +639,6 @@ chown_advanced_cmd (void)
|
||||
|
||||
files_on_begin = cpanel->marked;
|
||||
|
||||
#if 0
|
||||
/* I think that this code is trying to be much too clever -- pavel@ucw.cz */
|
||||
if (!vfs_current_is_local ()) {
|
||||
if (vfs_current_is_extfs ()) {
|
||||
message (1, _(" Oops... "),
|
||||
_(" I can't run the Advanced Chown command on an extfs "));
|
||||
return;
|
||||
} else if (vfs_current_is_tarfs ()) {
|
||||
message (1, _(" Oops... "),
|
||||
_(" I can't run the Advanced Chown command on a tarfs "));
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
do { /* do while any files remaining */
|
||||
init_chown_advanced ();
|
||||
|
||||
|
16
src/chmod.c
16
src/chmod.c
@ -296,22 +296,6 @@ void chmod_cmd (void)
|
||||
int i;
|
||||
struct stat sf_stat;
|
||||
|
||||
#if 0
|
||||
/* Don't do things like this: you do not want to enumerate all
|
||||
filesystems that can not support chmod, here. */
|
||||
if (!vfs_current_is_local ()) {
|
||||
if (vfs_current_is_extfs ()) {
|
||||
message (1, _(" Oops... "),
|
||||
_(" I can't run the Chmod command on an extfs "));
|
||||
return;
|
||||
} else if (vfs_current_is_tarfs ()) {
|
||||
message (1, _(" Oops... "),
|
||||
_(" I can't run the Chmod command on a tarfs "));
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
do { /* do while any files remaining */
|
||||
init_chmod ();
|
||||
if (cpanel->marked)
|
||||
|
15
src/chown.c
15
src/chown.c
@ -254,21 +254,6 @@ chown_cmd (void)
|
||||
gid_t new_group;
|
||||
char buffer [BUF_TINY];
|
||||
|
||||
#if 0
|
||||
/* Please no */
|
||||
if (!vfs_current_is_local ()) {
|
||||
if (vfs_current_is_extfs ()) {
|
||||
message (1, _(" Oops... "),
|
||||
_(" I can't run the Chown command on an extfs "));
|
||||
return;
|
||||
} else if (vfs_current_is_tarfs ()) {
|
||||
message (1, _(" Oops... "),
|
||||
_(" I can't run the Chown command on a tarfs "));
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
do { /* do while any files remaining */
|
||||
init_chown ();
|
||||
new_user = new_group = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user