Bug 40802

Summary: tar segfaults on inaccessible directories in incremental mode
Product: [Retired] Red Hat Linux Reporter: Need Real Name <oneill>
Component: tarAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-16 00:54:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2001-05-16 00:54:34 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2smp i586)

Description of problem:
tar passes a null pointer to strlen() and segfaults when it it hits an
inaccessible directory

How reproducible:
Always

Steps to Reproduce:
1.mkdir tarbug
2.chmod 0 tarbug
3.tar -c -f /dev/null --listed-incremental inc.out tarbug


Actual Results:  tar: tarbug: Cannot savedir: Permission denied
Segmentation fault


Expected Results:  tar: tarbug: Cannot savedir: Permission denied


Additional info:

Comment 1 Bernhard Rosenkraenzer 2001-05-17 12:18:34 UTC
Fixed in 1.13.19-5