Subject: Re: restore and schg flag
To: None <current-users@NetBSD.org>
From: Manuel Bouyer <email@example.com>
Date: 10/11/2004 22:08:31
On Mon, Oct 11, 2004 at 06:42:26PM +0200, Manuel Bouyer wrote:
> It's not because of the flags on the durectory, it' because of the
> flags on the original file:
> pop# ls -ldo
> drwxr-xr-x 2 root wheel - 512 Oct 11 18:36 .
> pop# ls -lo tar pax
> ls: pax: No such file or directory
> -r-xr-xr-x 1 root wheel schg 138497 Sep 18 22:16 tar
> pop# ln tar pax
> ln: pax: Operation not permitted
> restore will delay restoring modes/flags for directories, but not for regular
> files. We should probably keep in memory the flags on files as well,
> and restore them after the createlinks() step.
> I didn't look closely at this, but maybe we can extend the mechanism used
> for directories to regular files.
> Comments ? Has anyone a better idea ?
It's not that easy. I'll restart this thread on tech-userlevel.
Manuel Bouyer <firstname.lastname@example.org>
NetBSD: 26 ans d'experience feront toujours la difference