FreeBSD Bugzilla – Attachment 251272 Details for
Bug 277060
pax(1) hangs when copying directories with a trailing slash
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
patch-bin-pax-file_subs.c.txt (text/plain), 525 bytes, created by
Ganael LAPLANCHE
on 2024-06-07 17:01:10 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Ganael LAPLANCHE
Created:
2024-06-07 17:01:10 UTC
Size:
525 bytes
patch
obsolete
>diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c >index 1a019280ae7..1dcdd68fdae 100644 >--- a/bin/pax/file_subs.c >+++ b/bin/pax/file_subs.c >@@ -561,7 +561,12 @@ chk_path( char *name, uid_t st_uid, gid_t st_gid) > * work forward from the first / and check each part of the path > */ > spt = strchr(spt, '/'); >- if (spt == NULL) >+ >+ /* >+ * skip creating a leaf dir (with an ending '/') as we only want >+ * to create parents here >+ */ >+ if ((spt == NULL) || (*(spt + 1) == '\0')) > break; > *spt = '\0'; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277060
: 251272