9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] unvac bug
@ 2009-03-11  8:20 hugo rivera
  2009-04-07  9:19 ` hugo rivera
  0 siblings, 1 reply; 2+ messages in thread
From: hugo rivera @ 2009-03-11  8:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

hi there,
there is a strange bug in unvac from p9p. When you vac a file tree
with the -a option, to have something like 2009/0311/yourtree, and
then you unvac it with "unvac vacfile
2009/0311/yourtree/thefileyouwant", unvac dies with a segmentation
fault. Apparently unvac creates the 2009 directory, but with r-xr-xr-x
permissions, so it is not able to write to it. You have to manually
create the 2009/0311 directory, with the right permissions, so unvac
is able to put your files there. Note that if you do not create the
0311 directory inside 2009, then you have your segfault again, for the
same reason as before. But when you have both directories, you can
extract whatever you want without problems ;-) (really neat stuff,
venti and its friends).
Maybe I can send a patch for this, but I am not sure if my programming
skills are good enough to start sending code to plan 9.
Saludos

--
Hugo



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] unvac bug
  2009-03-11  8:20 [9fans] unvac bug hugo rivera
@ 2009-04-07  9:19 ` hugo rivera
  0 siblings, 0 replies; 2+ messages in thread
From: hugo rivera @ 2009-04-07  9:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Well, I've checking out the code and I am really unable to fix the
bug. It turns out that for some reason, VacDirEnum *vde inside unvac
gets the wrong permissions for 2009/0311, since it writes it with 0555
instead of 0755, when starts to walk the file tree.
I hope someone can fix this.
Saludos

2009/3/11, hugo rivera <uair00@gmail.com>:
> hi there,
>  there is a strange bug in unvac from p9p. When you vac a file tree
>  with the -a option, to have something like 2009/0311/yourtree, and
>  then you unvac it with "unvac vacfile
>  2009/0311/yourtree/thefileyouwant", unvac dies with a segmentation
>  fault. Apparently unvac creates the 2009 directory, but with r-xr-xr-x
>  permissions, so it is not able to write to it. You have to manually
>  create the 2009/0311 directory, with the right permissions, so unvac
>  is able to put your files there. Note that if you do not create the
>  0311 directory inside 2009, then you have your segfault again, for the
>  same reason as before. But when you have both directories, you can
>  extract whatever you want without problems ;-) (really neat stuff,
>  venti and its friends).
>  Maybe I can send a patch for this, but I am not sure if my programming
>  skills are good enough to start sending code to plan 9.
>  Saludos
>
>  --
>
> Hugo
>


--
Hugo



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-07  9:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-11  8:20 [9fans] unvac bug hugo rivera
2009-04-07  9:19 ` hugo rivera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).