Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!mips!daver!dlb!netcom!hue From: hue@netcom.UUCP (Jonathan Hue) Newsgroups: comp.sys.amiga Subject: bug in recently posted tar Keywords: stupidity useless Message-ID: <10765@netcom.UUCP> Date: 10 Apr 90 06:41:36 GMT Organization: NetCom- The Bay Area's Public Access Unix System {408 249-0290 guest} Lines: 46 I found a serious bug in the tar program that was recently posted to comp.sources.amiga and comp.binaries.amiga (my fault, I ported it, I introduced the bug). Tar will sometimes guru when extracting tar files created on other machines. If anyone has found any other bugs, please report them to me. When all the bugs that need fixing are found and fixed I will release a new version. If you have the source, here is the patch (it was a misplaced paren): #!/bin/sh # shar: Shell Archiver (v1.22) # # Run the following text with /bin/sh to create: # tarpatch1 # sed 's/^X//' << 'SHAR_EOF' > tarpatch1 && X*** t:,RDFt1A30598 Mon Apr 09 16:18:54 1990 X--- utime.c Mon Apr 09 16:00:20 1990 X*************** X*** 35,42 **** X { X struct DateStamp dateStamp; X X! return(utime_from_stamp(filename, seconds2AmiTime(unixtime[1]), X! &dateStamp)); X } X X int X--- 35,42 ---- X { X struct DateStamp dateStamp; X X! return(utime_from_stamp(filename, seconds2AmiTime(unixtime[1], X! &dateStamp))); X } X X int SHAR_EOF chmod 0644 tarpatch1 || echo "restore of tarpatch1 fails" exit 0 Apologies to anyone who was bitten by this bug. -Jonathan apple!netcom!hue