[SLUG] Question on recursive subdirectory in RH7.2 and RH7.3

2002-10-17 Thread Russell Ashdown
I found this recursive link on my RH7.2 and RH7.3 machines:

lrwxrwxrwx1 root root1 Oct 14 18:53 /usr/bin/mh - .

Can anyone shed any light on it?

It is creating havoc with a backup I am trying to make:

/bin/tar cv /usr -zhf /backup/usr

outputs:
usr/bin/mh
usr/bin/mh/mh
usr/bin/mh/mh/mh
usr/bin/mh/mh/mh/mh
usr/bin/mh/mh/mh/mh/mh
usr/bin/mh/mh/mh/mh/mh/mh
usr/bin/mh/mh/mh/mh/mh/mh/mh...
ad-infinitum...


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] Question on recursive subdirectory in RH7.2 and RH7.3

2002-10-17 Thread Angus Lees
At Fri, 18 Oct 2002 06:49:44 +1000, Russell Ashdown wrote:
 It is creating havoc with a backup I am trying to make:
 
 /bin/tar cv /usr -zhf /backup/usr
 
 outputs:
 usr/bin/mh
 usr/bin/mh/mh

not an answer to your original question, but you shouldn't be backing
up with -h unless you have a good reason to remove symlinks.

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] Question on recursive subdirectory in RH7.2 and RH7.3

2002-10-17 Thread Matthew Hannigan
On Fri, Oct 18, 2002 at 08:38:21AM +1000, Angus Lees wrote:
 At Fri, 18 Oct 2002 06:49:44 +1000, Russell Ashdown wrote:
  It is creating havoc with a backup I am trying to make:
  
  /bin/tar cv /usr -zhf /backup/usr
  
  outputs:
  usr/bin/mh
  usr/bin/mh/mh
 
 not an answer to your original question, but you shouldn't be backing
 up with -h unless you have a good reason to remove symlinks.

I think you've nailed it Gus, the -h is causing the loop,
since mh is a link to itself.

You should almost NEVER follow links in backups and find.

Matt
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug