🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #128

AFIO bug

#128
From: Hibbard T. Smith JR
Date: Wed, 04 Jul 1990 01:06
32 lines
2139 bytes
We have been using a PD cpio replacement called afio for several weeks.  It's
quicker than cpio, and handles links more intelligently.  Several of its 
options are opposite to their meaning in cpio.  Today however, a serious bug
became apparent.

I was in the process of upgrading a system to a new computer, and new (larger)
disks.  I saved the system to tape using find (with -depth) and afio while
running as root.  After startup of the new system, I (as root) did a complete
restore from the tapes.  After a short time, I started getting permission 
problems trying to write into my own directories. Other users began to make
similar complaints.  Upon examination I found that all directories which did
not already exist when I began the restore, and were not empty on the tape,
now belonged to root, instead of their original owners.  Furthermore, their
permissions bore little resemblance to the originals.  Looking at some source
for afio revealed that the depth option to find was responsible for the
trouble.  Afio just does not handle that properly.  I'm so used to using 
-depth when doing a full save, that it's almost automatic.  We could
find no documented restrictions on this use of afio.  

The result of this was several hours of manually changing owners, groups, and
modes in several hundred directories.  :-(   

If anyone else has run across this, or better yet fixed afio, plaese email
me your solution.  If I don't receive anything, I'll hack at it myself.

Thanks for any help or advice.....

-- 
		Smitty
-------------------------------------------
Hibbard T. Smith JR                 	 ESSNJAY Systems Inc.
uunet!hsi!essnj1!smitty
Technical Details
Message-ID: <3661@zorba.Tynan.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!zorba!dtynan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!zorba!dtynan
From: smitty@essnj1 (Hibbard T. Smith JR)
Newsgroups: comp.unix
Subject: AFIO bug
Keywords: AFIO, bug
Message-ID: <3661@zorba.Tynan.COM>
Date: 4 Jul 90 01:06:40 GMT
Sender: dtynan@zorba.Tynan.COM
Followup-To: comp.unix.wizards
Organization: ESSNJAY Systems Inc., Bethany, CT, USA
Lines: 32
Approved: dtynan@zorba.Tynan.COM