diff --git a/src/ChangeLog b/src/ChangeLog index e22de5008..4e1f7dbbc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2001-08-11 Pavel Roskin + * 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. diff --git a/src/achown.c b/src/achown.c index 0ff8b82cb..ddb88ef5d 100644 --- a/src/achown.c +++ b/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 (); diff --git a/src/chmod.c b/src/chmod.c index 0564bcf2b..7008676b2 100644 --- a/src/chmod.c +++ b/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) diff --git a/src/chown.c b/src/chown.c index 079d6d40d..612299b80 100644 --- a/src/chown.c +++ b/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;