mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-20 21:31:32 +03:00
unix: cane before root removal
This commit is contained in:
parent
6c5d7133f1
commit
0375646a93
@ -280,13 +280,13 @@ u3_unix_save(c3_c* pax_c, u3_atom pad)
|
|||||||
c3_y* pad_y;
|
c3_y* pad_y;
|
||||||
c3_c* ful_c;
|
c3_c* ful_c;
|
||||||
|
|
||||||
if ( '/' == *pax_c) {
|
|
||||||
pax_c++;
|
|
||||||
}
|
|
||||||
if ( !u3_unix_cane(pax_c) ) {
|
if ( !u3_unix_cane(pax_c) ) {
|
||||||
u3l_log("%s: non-canonical path\n", pax_c);
|
u3l_log("%s: non-canonical path\n", pax_c);
|
||||||
u3z(pad); u3m_bail(c3__fail);
|
u3z(pad); u3m_bail(c3__fail);
|
||||||
}
|
}
|
||||||
|
if ( '/' == *pax_c) {
|
||||||
|
pax_c++;
|
||||||
|
}
|
||||||
lod_w = strlen(u3_Host.dir_c);
|
lod_w = strlen(u3_Host.dir_c);
|
||||||
len_w = lod_w + sizeof("/.urb/put/") + strlen(pax_c);
|
len_w = lod_w + sizeof("/.urb/put/") + strlen(pax_c);
|
||||||
ful_c = c3_malloc(len_w);
|
ful_c = c3_malloc(len_w);
|
||||||
|
Loading…
Reference in New Issue
Block a user