summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-10-27 12:02:19 +0000
committerFrancois Pons <fpons@mandriva.com>2000-10-27 12:02:19 +0000
commitab55e51fb6a834fbc8997b5f98a83b63089ca1e8 (patch)
tree2b0e090ae0b574f1599f23aeb8eebc3d6a0a347f /perl-install/common.pm
parentb22de621e71241d23c8bd601a3dcbd98bc4ce334 (diff)
downloaddrakx-backup-do-not-use-ab55e51fb6a834fbc8997b5f98a83b63089ca1e8.tar
drakx-backup-do-not-use-ab55e51fb6a834fbc8997b5f98a83b63089ca1e8.tar.gz
drakx-backup-do-not-use-ab55e51fb6a834fbc8997b5f98a83b63089ca1e8.tar.bz2
drakx-backup-do-not-use-ab55e51fb6a834fbc8997b5f98a83b63089ca1e8.tar.xz
drakx-backup-do-not-use-ab55e51fb6a834fbc8997b5f98a83b63089ca1e8.zip
list_skels returns list of existing directory and writeable.
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 6b56550ac..9dcb55300 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -338,7 +338,7 @@ sub list_home() {
}
sub list_skels {
my ($prefix, $suffix) = @_;
- map { "$prefix$_/$suffix" } '/etc/skel', '/root', list_home() }
+ grep { -d $_ && -w $_ } map { "$prefix$_/$suffix" } '/etc/skel', '/root', list_home() }
sub translate {
my ($s) = @_;