Thread View: comp.bugs.2bsd
1 messages
1 total messages
Started by Steven M. Schultz
Tue, 03 Oct 1989 20:38
bug in tar's handling of absolute paths
Author: Steven M. Schultz
Date: Tue, 03 Oct 1989 20:38
Date: Tue, 03 Oct 1989 20:38
40 lines
1311 bytes
1311 bytes
Subject: bug in tar absolute pathname handling +FIX
Index: bin/tar.c 2.10BSD
Description:
Tar will not correctly handle absolute paths unless
you start them from /
Repeat-By:
cd /usr/src/sys
tar c /usr
Fix:
Apply the following patch.
-------------------------- CUT HERE -----------------------
*** tar.c.orig Sat Apr 26 07:35:13 1986
--- tar.c Tue Oct 3 15:27:47 1989
***************
*** 361,367 ****
argv++;
continue;
}
! parent = wdir;
for (cp = *argv; *cp; cp++)
if (*cp == '/')
cp2 = cp;
--- 361,373 ----
argv++;
continue;
}
!
! if (*argv[0] == '/'){
! parent = "";
! } else {
! parent = wdir;
! }
!
for (cp = *argv; *cp; cp++)
if (*cp == '/')
cp2 = cp;
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads