9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] System patch failed: Permission denied
@ 2012-04-21  3:26 Strake
  2012-04-21  7:15 ` David du Colombier
  0 siblings, 1 reply; 4+ messages in thread
From: Strake @ 2012-04-21  3:26 UTC (permalink / raw)
  To: 9fans

Hello. I wish to patch my system, but can't:

% who
glenda
% cat /adm/users | grep glenda
glenda:glenda:glenda:
sys:sys::glenda
% ape/patch < /usr/glenda/nix.diff
patching file 'float.h'
patch: **** can't rename '/tmp/...' to 'float.h': Permission denied
%

What?

I tried other diffs; same grief. How can I do so? I briefly searched
the 9fans archive, but found no such method, though I'm a 9novice so
might have just missed it.

Thanks.

Cheers,
strake



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

* Re: [9fans] System patch failed: Permission denied
  2012-04-21  3:26 [9fans] System patch failed: Permission denied Strake
@ 2012-04-21  7:15 ` David du Colombier
  2012-04-21 13:43   ` Strake
  0 siblings, 1 reply; 4+ messages in thread
From: David du Colombier @ 2012-04-21  7:15 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

If this is the patch I'm thinking about, try:

% ape/patch -p1 < /usr/glenda/nix.diff

--
David du Colombier



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

* Re: [9fans] System patch failed: Permission denied
  2012-04-21  7:15 ` David du Colombier
@ 2012-04-21 13:43   ` Strake
  2012-04-21 14:19     ` David du Colombier
  0 siblings, 1 reply; 4+ messages in thread
From: Strake @ 2012-04-21 13:43 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 21/04/2012, David du Colombier <0intro@gmail.com> wrote:
> If this is the patch I'm thinking about, try:
>
> % ape/patch -p1 < /usr/glenda/nix.diff

Thanks. It worked.

I thought that patch would use full path if -p not given, but it seems
otherwise.

Cheers,
strake



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

* Re: [9fans] System patch failed: Permission denied
  2012-04-21 13:43   ` Strake
@ 2012-04-21 14:19     ` David du Colombier
  0 siblings, 0 replies; 4+ messages in thread
From: David du Colombier @ 2012-04-21 14:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> I thought that patch would use full path if -p not given,
> but it seems otherwise.

No. Without -p, patch retains only the last element in the path.
There are new files in your patch, but you can't usually create
files into /. That's why it failed.

Patch is a bit confusing because it hasn't showed you the
first error message, which was:

mounted directory forbids creation

--
David du Colombier



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

end of thread, other threads:[~2012-04-21 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-21  3:26 [9fans] System patch failed: Permission denied Strake
2012-04-21  7:15 ` David du Colombier
2012-04-21 13:43   ` Strake
2012-04-21 14:19     ` David du Colombier

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).