🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #305

Re: Problems with "." in filenames with Unix 'lharc'

#305
From: Harry Langenbacher
Date: Fri, 16 Mar 1990 17:31
60 lines
2370 bytes
In article <637445274.6082@myrias.com> mj@myrias.com (Michal Jaegermann) writes:
>From article <8795@nfs4.rl.ac.uk>, by jjsc@inf.rl.ac.uk (John Cullen):
>>   stuff about filename problems with lharc, deleted
>In a function which writes header (write_header ?) there is a call ... deleted
>you want probably undefine macro STRICT. ...
>
>	Michal Jaegermann

so I made these changes to lharc.c :
---------------------------
< #define STRICT
---
> /* #define STRICT */

< void userbreak(void)
---
> void userbreak()

<   printf("\nC-LHarc for %s Version 1.00   (C) 1989-1990 Y.Tagawa, Kai Uwe Rommel\n"
<          "\nUsage: %s {axevlufdmctp}[qnftv] archive_file [files or directories...]\n",
---
>   printf("\nC-LHarc for %s Version 1.00   (C) 1989-1990 Y.Tagawa, Kai Uwe Rommel\n\
> \nUsage: %s {axevlufdmctp}[qnftv] archive_file [files or directories...]\n",

several more changes like that deleted, and finally:

< copy_archive(src, dst)char *src; char *dst;
---
> copy_archive(char *src, char *dst)
---------------------------

It compiles and runs ok on my sun 3/160 OS 4.0.3 . I could compile lharc.c with -O
and use -O4 on lzhuf.c lhio.c . Using -O2,3,4 on lharc.c always gets a core dump from
executing lharc.

 I love the compression ratio, but - I get core dumps when I do

lharc c arcname directoryname

what I have to do is:

lharc c arcname directoryname/*

which works just fine, except in one caes where directoryname/* was all directories,
which also dumped core, forcing me to do:

> foreach direct (installed/*)
? lharc a installed.lzh $direct/*
? end

which also worked fine.

Does anyone know how to get lharc to handle directory names without barfing ?

thanx


- Harry Langenbacher 818-354-9513
harry%neuron1@jpl-mil.jpl.nasa.gov
harry@neuron1.jpl.nasa.gov 128.149.12.7
Technical Details
Message-ID: <3117@jato.Jpl.Nasa.Gov>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!jarthur!usc!elroy.jpl.nasa.gov!jato!neuron1!harry
References: <8795@nfs4.rl.ac.uk> <637445274.6082@myrias.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!jarthur!usc!elroy.jpl.nasa.gov!jato!neuron1!harry
From: harry@neuron1.Jpl.Nasa.Gov (Harry Langenbacher)
Newsgroups: comp.sources.bugs
Subject: Re: Problems with "." in filenames with Unix 'lharc'
Message-ID: <3117@jato.Jpl.Nasa.Gov>
Date: 16 Mar 90 17:31:01 GMT
References: <8795@nfs4.rl.ac.uk> <637445274.6082@myrias.com>
Sender: news@jato.Jpl.Nasa.Gov
Reply-To: harry%neuron1@jpl-mil.jpl.nasa.gov (Harry Langenbacher)
Organization: Jet Propulsion Laboratory, Pasadena CA
Lines: 60