summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-19 12:37:47 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-19 12:37:47 +0000
commit70001ac847795f1450aed473f213e4ad205896a8 (patch)
tree52ced49fc48cdb684ed76f1e7636b3ddd4f74368 /move
parent41f173f8baf3d510de91329257206c0faa585c7b (diff)
downloaddrakx-70001ac847795f1450aed473f213e4ad205896a8.tar
drakx-70001ac847795f1450aed473f213e4ad205896a8.tar.gz
drakx-70001ac847795f1450aed473f213e4ad205896a8.tar.bz2
drakx-70001ac847795f1450aed473f213e4ad205896a8.tar.xz
drakx-70001ac847795f1450aed473f213e4ad205896a8.zip
globing * won't cache hidden files
Diffstat (limited to 'move')
-rwxr-xr-xmove/etc-monitorer.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/move/etc-monitorer.pl b/move/etc-monitorer.pl
index e28e06dc1..b0bb90362 100755
--- a/move/etc-monitorer.pl
+++ b/move/etc-monitorer.pl
@@ -8,7 +8,7 @@ sub logit { outpend "/var/log/etc-monitorer.log", sprintf("[%s] @_\n", chomp_(`d
my $machine_ident = cat_('/var/lib/machine_ident');
my $sysconf = "/home/.sysconf/$machine_ident";
-foreach (glob("$ARGV[0]/*")) {
+foreach (chomp_(`find $ARGV[0] -type f -maxdepth 1`)) {
next if $_ eq '/etc/sudoers'; #- /etc/sudoers can't be a link
if (-f && !-l) {
my $dest = "/home/.sysconf/$machine_ident$_";