Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 1997 09:41:15 -0700
From:      John Polstra <jdp@polstra.com>
To:        imp@village.org
Cc:        current@freebsd.org
Subject:   Re: Bug in dump | restore
Message-ID:  <199704301641.JAA06991@austin.polstra.com>
In-Reply-To: <E0wI5p1-0004eB-00@rover.village.org>
References:  <E0wI5p1-0004eB-00@rover.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is old stuff, but I didn't see any replies.

In article <E0wI5p1-0004eB-00@rover.village.org>,
Warner Losh  <imp@village.org> wrote:
> 
> Consider:
> 
> # newfs /some/place/interesting
> # mount /some/place/interesting
> # cd /some/place/interesting
> # dump 0f - /usr | restore -rf -
> ...
> warning: cannot create hard link ./bin/ypchsh->./bin/chpass: Operation not permitted
> warning: cannot create hard link ./bin/ypchfn->./bin/chpass: Operation not permitted
> warning: cannot create hard link ./bin/ypchpass->./bin/chpass: Operation not permitted
> warning: cannot create hard link ./bin/chsh->./bin/chpass: Operation not permitted
> warning: cannot create hard link ./bin/chfn->./bin/chpass: Operation not permitted
> warning: cannot create hard link ./bin/yppasswd->./bin/passwd: Operation not permitted
> 
> chpass and passwd are imutable, so the hardlink fails.  I claim this
> is a bug.  Can anybody think of a good reason to think of this as a
> desirable feature?

No.  It's a bug.

Personally, I think the immutable flag is a joke and should be ignored
at securelevel <= 0.  It has never saved me from myself, but it's
gotten in my way a few thousand times.  But that's a different topic.

> P.S.  All the links should be created and then the mutable flags
> should be set, imho.

Or, for each link:  clear flags, make the link, restore flags.
That's probably easier than saving up all the links and doing them
at the end.

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704301641.JAA06991>