* achown.c (chown_advanced_cmd): Remove dead code.

* chown.c (chown_cmd): Likewise.
* chmod.c (chmod_cmd): Likewise.
This commit is contained in:
Pavel Roskin 2001-08-12 03:33:23 +00:00
parent 0177db2941
commit b3fbb01112
4 changed files with 4 additions and 46 deletions

View File

@ -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.

View File

@ -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 ();

View File

@ -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)

View File

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