Subject: Re: nbpax broken on Solaris?
To: None <tech-pkg@NetBSD.org, christos@zoulas.com>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 02/02/2006 14:25:26
Would you please update the pkgsrc/archiver/pax .
That's OK
Thanks Gilles
> From: christos@zoulas.com (Christos Zoulas)
>
> On Jan 31, 6:40pm, Gilles.Dauphin@enst.fr (Gilles Dauphin) wrote:
> -- Subject: Re: nbpax broken on Solaris?
>
> | > What errno is "Operation not applicable". Is this path component
automounted?
> | > I don't see this errno listed in mkdir(2) in my solaris 2.8 man page.
> | > Fixing this is trivial: just handle the errno in ar_subs.c:domkdir().
> | >
> |
> | I have the same problem with a path component automounted.
> | My work around is to symlink after the automounted dir.
>
> Please try this patch:
>
> christos
>
> Index: ar_subs.c
> ===================================================================
> RCS file: /cvsroot/src/bin/pax/ar_subs.c,v
> retrieving revision 1.46
> diff -u -u -r1.46 ar_subs.c
> --- ar_subs.c 6 Dec 2005 19:11:15 -0000 1.46
> +++ ar_subs.c 31 Jan 2006 18:08:38 -0000
> @@ -142,6 +142,7 @@
> return 0;
> case EEXIST:
> case EACCES:
> + case ENOSYS: /* Grr Solaris */
> error = errno;
> if (stat(fname, &sb) != -1 && S_ISDIR(sb.st_mode))
> return 0;