Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hao!ames!ucbcad!ucbvax!decvax!dartvax!vizard From: vizard@dartvax.UUCP (Todd Krein) Newsgroups: comp.os.minix Subject: Bug in tar.c Message-ID: <6135@dartvax.UUCP> Date: Mon, 4-May-87 16:01:10 EDT Article-I.D.: dartvax.6135 Posted: Mon May 4 16:01:10 1987 Date-Received: Sat, 9-May-87 02:13:03 EDT Organization: Dartmouth College, Hanover, NH Lines: 26 Keywords: quick fix [munch] Here's a bug fix for tar. if you typed 'tar c /dev/at0 /usr/*' it would create incorrect file names. Very simple fix, just clear the path name after doing each command line filename. diff tar.c tar.new 60a61,62 > char path[NAME_SIZE]; > char pathname[NAME_SIZE]; 111c113 < for (i = 3; i < argc; i++) --- > for (i = 3; i < argc; i++) { 112a115,116 > path[0] = '\0'; > } 281d284 < char path[NAME_SIZE]; 283d285 < char pathname[NAME_SIZE]; Todd Krein vizard@dartvax