File permission handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am attempting to bunzip and untar a file in an embedded system. The
application invokes a system() call to launch bzcat piped to tar. tar is
reporting the filenames, but refuses to untar complaining about permissions
violations. How do I get the files to untar successfully? Script invocation
is "bzcat -xk %s | tar xf -" and a filename is supplied to the string
argument through sprintf(). What am I doing wrong here? 

BTW, for those who would throw up security warning flags, this is an
enclosed box where I don't have much worry about security issues revolviing
around forking a shell script.

Keith Siders
Software Engineer
 Toshiba America Consumer Products, Inc.
Advanced Television Technology Center
801 Royal Parkway, Suite 100
Nashville, Tennessee 37214
Phone: (615) 257-4050
Fax:   (615) 453-7880


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux